Open romanlex opened 8 years ago
Почему то при использовании csscomb ломается sourcemap и в dev tool браузера ссылки на файлы меняются
gulp.task('style_stylus:build', function() { return gulp.src(path.src.style.stylus) .pipe(plumber()) .pipe(sourcemaps.init()) .pipe(stylus({ use: [ autoprefixer_stylus({ browsers : ["last 4 version", 'ie 8', 'ie 9', '> 5%'] })], })) //.pipe(csscomb()) .pipe(gulp.dest(path.build.css)) .pipe(nano({zindex: false, mergeRules: false, discardComments: {removeAll: true}})) .pipe(rename({suffix: '.min'})) .pipe(sourcemaps.write('./', { includeContent: false, relativeToSourcePath: '/build', sourceRoot: '/src/style/stylus' })) .pipe(gulp.dest(path.build.css)) .pipe(plumber.stop()) .pipe(reload({stream: true, match: '**/*.css'})) .pipe(notify({ title: '[Gulp] CSS Build', message: 'Stylus task complete', onLast: true, wait: false })); });
Please, add sourcemap support. E.g.
Very appreciate if this was to get added in a future release
+1 for sourcemap
Можно использовать gulp-if и применять csscomb только при финальной сборке проекта.
gulp-if
csscomb
the same problem
Почему то при использовании csscomb ломается sourcemap и в dev tool браузера ссылки на файлы меняются