After renaming my file I am getting the following error when running the gulp build task:
Error: Error: File not found with singular glob: F:\Projects\xyz\HTML\app\css\main.css
at DestroyableTransform.<anonymous> (F:\Projects\xyz\HTML\node_modules\gulp-useref\lib\streamManager.js:90:36)
main.css file no longer exists as I changed it to style.css but for some reason it is searching for the old file.
As it turns out I missed changing file name in HTML file as it was calling main.css instead of style.css.
<!--build:css css/main.min.css -->
<link rel="stylesheet" href="css/main.css">
<!-- endbuild -->
Changed it to:
<!--build:css css/style.min.css -->
<link rel="stylesheet" href="css/style.css">
<!-- endbuild -->
An honest mistake but I believe someone else can run into something similar :)
In my case, removing these files:
package-lock.json
node_modules
folder.tmp
or dist
folderAnd then reinstall dependencies using:
npm i
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With