如何在最新的gulp-sass-ruby中使用gulp-cached,这是我的来源。
g.task('style', function(){
return sass('../scss/header.scss', {style:'compressed', sourcemap: true})
.on('error', notify.onError(function (error){
return "Error: " + error.message;
}))
.pipe(cache('cached'))
// For file sourcemaps
.pipe(sourcemaps.write('.', {
includeContent: false,
sourceRoot: 'source'
}))
.pipe(g.dest('../css'))
.pipe(notify('scss converted to css and compressed <%= file.relative %>'));
});