Gulp
2019-02-20 16:02 更新
Gulp是JavaScript项目构建工具。
使用gulp-sourcemaps生成Source Map:
var gulp = require('gulp');
var plugin1 = require('gulp-plugin1');
var plugin2 = require('gulp-plugin2');
var sourcemaps = require('gulp-sourcemaps');
gulp.task('javascript', function() {
gulp.src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(plugin1())
.pipe(plugin2())
.pipe(sourcemaps.write('../maps'))
.pipe(gulp.dest('dist'));
});
以上内容是否对您有帮助:
← Grunt
更多建议: