Answer the question
In order to leave comments, you need to log in
Gulp, browserify - how to make a minified js file + source map?
More recently, I got acquainted with these assembly tools and immediately ran into a problem.
The task is to make a minified + map file from the generated browserify file.
Now I have this gulpfile:
var gulp = require('gulp'),
browserify = require('browserify'),
source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify('./app/main.js', {debug : true})
.bundle()
.pipe(source('bundle.js'))
.pipe(gulp.dest('./'));
});
Answer the question
In order to leave comments, you need to log in
I advise you to look in full, there is a lot of interesting things, but on the topic of the question - I will add a link to the desired piece. youtube.be/65O-kmgmRI4?t=55m7s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question