想实现在sublime下对js进行minify时实时生成sourcemap,有相关插件推荐么?
伊谢尔伦2017-04-10 14:56:49
我用的gulp来进行自动任务,以下是sourcesmap的用法
`var sourcemaps = require("gulp-sourcemaps");
gulp.task("deploy", ["clean", "copy"], function() {
gulp.src(paths.deploySrc)
.pipe(sourcemaps.init())
.pipe(coffee())
.pipe(uglify())
.pipe(sourcemaps.write("sourcemaps"))
.pipe(gulp.dest("build"));
});`