Answer the question
In order to leave comments, you need to log in
How to generate a source map for files included with require?
We have a gulp task:
gulp.task('js', function() {
gulp.src('*.js')
.pipe(sourcemaps.init())
.pipe(browserify())
.pipe(sourcemaps.write('./maps/', {includeContent: false}))
.pipe(gulp.dest('./'));
});
require('foo.js');
require('bar.js');
//some local code
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question