File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,34 @@ const scripts = (done) => {
33
33
} )
34
34
. pipe ( source ( theme . name + '.js' ) )
35
35
. pipe ( global . env . environment === 'production' ? gulpPlugins . buffer ( ) : noop ( ) )
36
- . pipe ( global . env . environment === 'production' ? gulpPlugins . uglify ( ) : noop ( ) )
36
+ . pipe ( global . env . environment === 'production' ? gulpPlugins . uglify ( {
37
+ "compress" : true ,
38
+ "mangle" : {
39
+ "keep_fnames" : true
40
+ } ,
41
+ "output" : {
42
+ "ascii_only" : true ,
43
+ "beautify" : false ,
44
+ "braces" : false ,
45
+ "indent_level" : 2 ,
46
+ "indent_start" : 0 ,
47
+ "inline_script" : true ,
48
+ "keep_quoted_props" : false ,
49
+ "max_line_len" : false ,
50
+ "preamble" : null ,
51
+ "preserve_line" : false ,
52
+ "quote_keys" : false ,
53
+ "quote_style" : 1 ,
54
+ "semicolons" : true ,
55
+ "shebang" : true ,
56
+ "source_map" : null ,
57
+ "width" : 80 ,
58
+ "wrap_iife" : false ,
59
+ "comments" : "/^@/" ,
60
+ "ie8" : false ,
61
+ "webkit" : true
62
+ }
63
+ } ) : noop ( ) )
37
64
. pipe ( gulp . dest ( theme . js . dest ) )
38
65
. pipe ( reload ( ) ) ;
39
66
} ) ;
You can’t perform that action at this time.
0 commit comments