Gulp throwing error: File not found with singular glob

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=”https://stackoverflow.com/questions/36839828/css/main.css”> <!– endbuild –> Changed it to: <!–build:css css/style.min.css –> <link rel=”stylesheet” href=”https://stackoverflow.com/questions/36839828/css/style.css”> <!– endbuild –> An honest mistake but I believe someone else can run into something similar 🙂

Why does gulp-useref does not seem to work with a comment in the replacement section?

The reason is version change check documentation https://www.npmjs.com/package/gulp-useref here you have an example: gulp.task(‘optimize’, [‘templateCache’, ‘images’], function(){ var templateCache = config.temp + config.templateCache.files; return gulp .src(config.index) .pipe($.plumber()) .pipe($.inject(gulp.src(templateCache, {read: false}, {starttag: ”}))) .pipe($.useref({ searchPath: ‘./’ })) .pipe(gulp.dest(config.build)); }); hope it helps

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)