未验证 提交 818bd73e 编写于 作者: A Artem Guskov 提交者: GitHub

Docs: Remove gulp-sourcemaps because it is built-in (#2592)

上级 598f971a
......@@ -15,7 +15,6 @@ var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var log = require('gulplog');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var reactify = require('reactify');
gulp.task('javascript', function () {
......@@ -28,13 +27,11 @@ gulp.task('javascript', function () {
});
return b.bundle()
.pipe(source('app.js'))
.pipe(source('app.js', { sourcemaps: true }))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
// Add transformation tasks to the pipeline here.
.pipe(uglify())
.on('error', log.error)
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./dist/js/'));
.pipe(gulp.dest('./dist/js/', { sourcemaps: '../sourcemaps/' }));
});
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册