sassをコンパイルしてChormeのデベロッパーツールにて確認するとき
ネストしているセレクタの行数がscssファイルとブラウザとでずれてしまいます。
正常に戻すにはどうすればよろしいでしょうか?
以下gulpfile.jsの記述になります。
gulp.js
1 gulp.task('sass', function() { 2 return gulp.src(csspath).pipe(sourcemaps.init()) 3 .pipe(plumber({ 4 handleError: function(err) { 5 console.log(err); 6 this.emit('end'); 7 } 8 })).pipe(frontnote({ 9 out: cssdocspath 10 })).pipe(sassglob()) 11 .pipe(sourcemaps.init()) 12 .pipe(sass({sourcemap: true})) 13 .pipe(header('@charset "UTF-8";\n\n')) 14 .pipe(sourcemaps.write({includeContent: false})) 15 .pipe(sourcemaps.init({loadMaps: true})) 16 .pipe(autoprefixer()) 17 .pipe(csslint()).pipe(sourcemaps.write()).pipe(gulp.dest(cssdistpath)) 18 .pipe(browserSync.reload({stream:true})).pipe(notify('css task finished')) 19 }); 20 21gulp.task('bs-reload', function() { 22 browserSync.reload({stream:true}); 23}); 24 25gulp.task('default', ['browser-sync'], function() { 26 gulp.watch(csspath, ['sass']); 27 gulp.watch("*.html", ['bs-reload']); 28});
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。