gulp-csscomb icon indicating copy to clipboard operation
gulp-csscomb copied to clipboard

sourcemap ломается(

Open romanlex opened this issue 9 years ago • 6 comments

Почему то при использовании 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 }));
});

romanlex avatar Feb 01 '16 20:02 romanlex

Please, add sourcemap support. E.g.

ghost avatar Mar 21 '16 14:03 ghost

Very appreciate if this was to get added in a future release

wolfy1339 avatar Jun 15 '16 03:06 wolfy1339

+1 for sourcemap

terryupton avatar Jan 06 '17 18:01 terryupton

+1 for sourcemap

fedorovsky avatar Mar 27 '17 19:03 fedorovsky

Можно использовать gulp-if и применять csscomb только при финальной сборке проекта.

Hrommi avatar Apr 12 '18 15:04 Hrommi

the same problem

Alecto avatar Nov 11 '18 20:11 Alecto