我已经从"gulp-compass":"^2.0.3“更新到”gulp compass“:"^2.1.0”,现在看起来gulp changed给了我一个错误
app/node_modules/gulp-changed/index.js:31
if (sourceFile.stat.mtime > targetStat.mtime) {
^
TypeError: Cannot read property 'mtime' of null
app/node_modules/gulp-changed/index.js:31:23
at Object.oncomplete (fs.js:108:15)我的吞咽任务
gulp.task('sass-desktop', function () {
return gulp.src('scss/*.scss')
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(compass({
config_file: 'config.rb',
css: 'css',
sass: 'scss',
image: 'images',
debug: false,
require: ['susy', 'modular-scale']
}))
.on('error', function(error) {
// Would like to catch the error here
console.log(error);
this.emit('end');
})
.pipe(autoprefixer({
browsers: ['last 8 versions'],
cascade: false
}))
.pipe(changed('css', {extension: '.css'}))
.pipe(gulp.dest('css'))
});当有人在gulp changed上打开一个bug时,我添加了一条评论,但看起来这对ruby sass不起作用:https://github.com/sindresorhus/gulp-changed/issues/25#issuecomment-108256528
有没有你所知道的这个插件的替代品?
发布于 2015-06-16 17:54:38
我并不是真的使用这两个吞咽模块,只是走过去看看这个。
你可以参考这个关于gulp-changed和gulp-newer之间的比较的问题:gulp-newer vs gulp-changed
希望对您有所帮助:)
https://stackoverflow.com/questions/30663404
复制相似问题