Debugging variables not working with gulp sourcemaps + uglify
问题 I have the following gulp task for bundling javascript: gulp.task('js', function () { return gulp.src(paths.js) .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(concat('bundle.min.js')) .pipe(sourcemaps.write('./')) .pipe(gulp.dest('dist')); }); When I run this in the Chrome dev tools, sourcemaps are found and breakpoints work, but variables can't be debugged . Take this example chunk of angular code: iarApp.config(['$animateProvider', function ($animateProvider) { $animateProvider