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
-
3
1
var pkg = require ( './package.json' ) ;
4
2
// https://github.com/gulpjs/gulp/blob/master/docs/README.md
5
3
var gulp = require ( 'gulp' ) ;
6
4
// http://webpack.github.io/docs/
7
5
var webpack = require ( 'webpack' ) ;
8
6
// https://github.com/shama/webpack-stream
9
7
var webpackStream = require ( 'webpack-stream' ) ;
10
- //
8
+ // https://github.com/dominictarr/event-stream
11
9
var es = require ( 'event-stream' ) ;
10
+ // https://github.com/justmoon/node-extend
12
11
var extend = require ( 'extend' ) ;
13
12
14
13
gulp . task (
@@ -52,6 +51,9 @@ gulp.task(
52
51
. pipe ( webpackStream ( normalWebpackStream ) )
53
52
. pipe ( gulp . dest ( './dist' ) ) ;
54
53
54
+ /**
55
+ * Deep copy the normalWebpackStream to customize it for the uglify stream
56
+ */
55
57
var ulgifyWebpackStream = extend ( true , { } , normalWebpackStream ) ;
56
58
57
59
ulgifyWebpackStream . plugins . unshift (
You can’t perform that action at this time.
0 commit comments