File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31var pkg = require ( './package.json' ) ;
42// https://github.com/gulpjs/gulp/blob/master/docs/README.md
53var gulp = require ( 'gulp' ) ;
64// http://webpack.github.io/docs/
75var webpack = require ( 'webpack' ) ;
86// https://github.com/shama/webpack-stream
97var webpackStream = require ( 'webpack-stream' ) ;
10- //
8+ // https://github.com/dominictarr/event-stream
119var es = require ( 'event-stream' ) ;
10+ // https://github.com/justmoon/node-extend
1211var extend = require ( 'extend' ) ;
1312
1413gulp . task (
@@ -52,6 +51,9 @@ gulp.task(
5251 . pipe ( webpackStream ( normalWebpackStream ) )
5352 . pipe ( gulp . dest ( './dist' ) ) ;
5453
54+ /**
55+ * Deep copy the normalWebpackStream to customize it for the uglify stream
56+ */
5557 var ulgifyWebpackStream = extend ( true , { } , normalWebpackStream ) ;
5658
5759 ulgifyWebpackStream . plugins . unshift (
You can’t perform that action at this time.
0 commit comments