Answer the question
In order to leave comments, you need to log in
How to set up sourcemap generation in VSCode?
Good day!
I decided to master sass, installed VS Code, nodejs 7 on Win10. I set up css auto-generation using gulp using this
guide. I understand it is necessary to register something in gulpfile.js?
Advise what to do and where to read about setting up tasks for Gulp.
Answer the question
In order to leave comments, you need to log in
we somehow made it
var babel = require('babel-core/register');
var babelify = require('babelify');
gulp.task('app_js_min', function(done) {
var b = browserify({
extensions: ['.js', '.jsx'],
debug: true,
});
return b.transform(babelify)
.plugin('minifyify', {
map: 'app.map',
uglify: {
mangle: false,
compress: {
drop_debugger: false,
drop_console: false,
}
},
output: DIST_DIR + '/js/app.map'
})
.add(SRC_DIR + "/index.js")
.bundle()
.pipe(source('app.min.js'))
.pipe(gulp.dest(DIST_DIR + "/js"));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question