私のgulpfile([email protected])のsassは多くのエラーを報告しています。これらのようなエラーではない:sass/gulp-sassは特定のエラー(無効なプロパティ)でサイレント状態のままです
=clearfix()
&:after
content: ""
display: table
clear both
content
とdisplay
は(ミックスインが参照される)実際のクラスに正しくそれを作るが、(私はコロンを逃したため)clear
ません。これは構文エラーです(したがって、rareproperty: 42px;
は正常に処理されているとは限りません)。 →静止画:エラーは表示されず、中断はありません。
マイ一気タスク:
gulp.task('sass', function() {
return gulp.src(src.scssMaster)
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe( sass({
debugInfo : true,
lineNumbers : true,
outputStyle: 'expanded'
})
.on('error', function(err){
gutil.log(err); // stackoverflow.com/a/30742014/444255
this.emit('end');
})
)
.pipe(autoprefixer({
browsers: ['iOS >= 5', 'ie 8', 'Firefox > 2'],
cascade: true,
remove: true
}))
.pipe(rename('lznet.css'))
.pipe(sourcemaps.write('../maps'))
.pipe(gulp.dest(src.cssDir))
.pipe(reload({stream: true}))
.on('end',() => gutil.log('sass thing done'));
});
ミッレグラツィエ❤
未解決の回答 –