You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any easy way to do this? Say I pass gulp --no-sourcemaps to the CLI, I want to disable sourcemaps from the Gulp layer.
gulp.task('css',function(){returngulp.src(config.css.src+'/**/*.scss').pipe(sourcemaps.init()).pipe(sass()).pipe(prefixer({browsers: ['last 3 versions'],cascade: false})).pipe(sourcemaps.write('../maps/css',{enabled: options.sourcemaps}))// HERE or something similar.pipe(gulp.dest(config.css.dst));});
The text was updated successfully, but these errors were encountered:
You can use the normal javascript if statement to remove sourcemaps.init() and sourcemaps.write() from the pipeline. Another option is the gulp-if plugin.
Is there any easy way to do this? Say I pass
gulp --no-sourcemaps
to the CLI, I want to disable sourcemaps from the Gulp layer.The text was updated successfully, but these errors were encountered: