javascript - gulp sourcemaps and chrome developer not working together when two plugins are used -
here task:
gulp.src(widget + "/widget.es6") .pipe(sourcemaps.init()) .pipe(babel({ modules: 'amd' })) .pipe(uglify()) .pipe(rename('widget.js')) .pipe(sourcemaps.write('./' + widget + "/")) .pipe(gulp.dest(widget + "/"));
the issue when place break in gc developer in resulting minified widget.js takes me other widget.js not minified (but not original widget.es6). assume product of babel pipe. in other words gcd interpreting sourcemap , taking me 1 step in chain (just beyond uglification).
if comment out uglification, sourcemap works (i.e. taken widget.js (now not minified) -> widget.es6 (es6 file).
i hoping source map take me minified widget.js -> es6 file (which after sourcemaps.init()
call).
Comments
Post a Comment