提交 f9eaf8db 编写于 作者: N nkzawa

use UglifyJsPlugin

上级 a8c6b9e5
......@@ -2,7 +2,6 @@ const gulp = require('gulp')
const babel = require('gulp-babel')
const cache = require('gulp-cached')
const notify_ = require('gulp-notify')
const uglify = require('gulp-uglify')
const webpack = require('webpack-stream')
const del = require('del')
......@@ -85,10 +84,10 @@ gulp.task('build-release-client', ['compile-lib', 'compile-client'], () => {
'process.env': {
NODE_ENV: JSON.stringify('production')
}
})
}),
new webpack.webpack.optimize.UglifyJsPlugin()
]
}))
.pipe(uglify({ preserveComments: 'license' }))
.pipe(gulp.dest('dist/client'))
.pipe(notify('Built release client'))
})
......
......@@ -47,7 +47,6 @@
"gulp-babel": "6.1.2",
"gulp-cached": "1.1.0",
"gulp-notify": "2.2.0",
"gulp-uglify": "2.0.0",
"webpack-stream": "3.2.0"
},
"license": "MIT"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册