I have a gulp task below and every time I run this task (before browsersync). I want to change the last modification time of one file (nothing changes in this file, I just need to change the time of the last modification - an alternative to shell "touch"). Can someone tell me the easiest way to do this, please? Thanks!
gulp.task('sass', function() { return sass(pkg.sass.dir, {sourcemap: true, precision: 10}) .on('error', function (err) { onError(err); }) .pipe(autoprefixer({ browsers: ['last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'], cascade: true })) .pipe(gulp.dest(pkg.css.dir)) .pipe(browsersync.reload({stream:true})); });
source share