jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

path that contains .js or .css aren't picked in useref. #253

Open ankitsorathiya opened 6 years ago

ankitsorathiya commented 6 years ago

following file isn't picked in useref since it contains chart.js as parent folder name. <script src ="../bower_components/chart.js/dist/Chart.min.js"></script>

let us know if there's any expression we can pass in the useref that allows files to be picked in particular category.

Thanks

ppozniak commented 6 years ago

I was looking for cause of that, and you might be right. I wanted to import normalize.css where path is node_modules/normalize.css/normalize.css. Maybe that's my case too.