Skip to content

Commit c5e2c5a

Browse files
committed
Merge pull request #235 from wangxiao/babel
设置 babel 编译 av.js 时不压缩代码
2 parents 41bcd86 + 276a551 commit c5e2c5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gulpfile.babel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ gulp.task('browserify', ['clean-dist'], () => {
7171
gulp.task('babel-browser', ['browserify'], () => {
7272
return gulp.src('dist/av-es6.js')
7373
// .pipe(sourcemaps.init())
74-
.pipe(babel())
74+
.pipe(babel({
75+
compact: false
76+
}))
7577
.pipe(concat('av.js'))
7678
// .pipe(sourcemaps.write("."))
7779
.pipe(gulp.dest('dist'));

0 commit comments

Comments
 (0)