I generated the js file with the source map using the following gulp task. Source sources are loaded in Firefox, but not loaded in Chrome. Can someone point out why Chrome cannot find sources that are explicitly included in the generated index - [hash] .js.map?
gulp.task('browserify', function () {
return browserify({ debug: true })
.transform(babelify)
.require('client/web/private/js/es6/index.js', {
entry: true
})
.bundle()
.on('error', function handleError(err) {
console.error(err.toString());
this.emit('end');
})
.pipe(source('index.js'))
.pipe(buffer())
.pipe(sourcemaps.init({
loadMaps: true
}))
.pipe(uglify())
.pipe(rev())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./client/web/public/dist/js'))
});
source
share