I have a single app.scss
file which imports ~100 other Scss files. This is then compiled to app.css
with a gulp task. app.css
contains more than 4095 selectors, so I use gulp-bless
to split it up into multiple files.
This all works with the exception of the sourcemaps.
The GitHub page for gulp-bless
states that "this can be used with gulp-sourcemaps", but it gives absolutely no documentation or additional details.
The following ends up freezing the entire process:
gulp.src('/path/to/app.scss'))
.pipe(sourcemaps.init())
.pipe(sass({
style: 'expanded'
}))
.pipe(autoprefixer())
.pipe(sourcemaps.write())
.pipe(bless({
imports: false
}))
.pipe(gulp.dest('/path/to/compiled-css'))
Placing bless
before the sourcemaps.write()
, removes the sourcemaps entirely from the resulting files.
Has anyone successfully used source maps with gulp-bless, as it is allegedly possible?