External source maps for minified, transpiled ES6 code with webpack and gulp
问题 I'm writing ES6 code and transpile it to ES5 with Babel, then minify with Uglify. All run with webpack via gulp. I would like to use external source maps (to keep filesize as small as possible). The gulp task is pretty basic - all the funky stuff is in the webpack config: var gulp = require("gulp"); var webpack = require("gulp-webpack"); gulp.task("js:es6", function () { return gulp.src(path.join(__dirname, "PTH", "TO", "SRC", "index.js")) .pipe(webpack(require("./webpack.config.js"))) .pipe