File tree Expand file tree Collapse file tree 4 files changed +6
-18
lines changed Expand file tree Collapse file tree 4 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
4
-
5
3
module . exports = {
6
- mode : 'development ' ,
4
+ mode : 'production ' ,
7
5
module : {
8
6
rules : [
9
7
{
@@ -16,6 +14,5 @@ module.exports = {
16
14
]
17
15
}
18
16
]
19
- } ,
20
- plugins : [ new UglifyJSPlugin ( ) ]
17
+ }
21
18
} ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const path = require ( 'path' ) ;
4
- const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
5
4
const CopyPlugin = require ( 'copy-webpack-plugin' ) ;
6
5
7
6
module . exports = {
8
- mode : 'development ' ,
7
+ mode : 'production ' ,
9
8
module : {
10
9
rules : [
11
10
{
@@ -31,7 +30,6 @@ module.exports = {
31
30
]
32
31
} ,
33
32
plugins : [
34
- new UglifyJSPlugin ( ) ,
35
33
new CopyPlugin ( [ {
36
34
from : path . resolve ( __dirname , 'live.html' ) ,
37
35
to : path . resolve ( __dirname , '../../client/live.html' )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // eslint-disable-next-line
4
- const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
5
-
6
3
module . exports = {
7
- mode : 'development ' ,
4
+ mode : 'production ' ,
8
5
output : {
9
6
library : 'SockJS' ,
10
7
libraryTarget : 'umd'
11
- } ,
12
- plugins : [
13
- new UglifyJSPlugin ( )
14
- ]
8
+ }
15
9
} ;
Original file line number Diff line number Diff line change 83
83
"eslint-plugin-import" : " ^2.7.0" ,
84
84
"execa" : " ^0.9.0" ,
85
85
"file-loader" : " ^1.1.6" ,
86
+ "html-loader" : " ^0.5.5" ,
86
87
"html-webpack-plugin" : " Graham42/html-webpack-plugin#4df601b7fa89e0e30535f759b469bcfe7073a018" ,
87
88
"istanbul" : " ^0.4.5" ,
88
89
"jquery" : " ^3.2.1" ,
91
92
"marked" : " ^0.3.9" ,
92
93
"mocha" : " ^3.5.3" ,
93
94
"mocha-sinon" : " ^2.0.0" ,
94
- "html-loader" : " ^0.5.5" ,
95
95
"semver" : " ^5.4.1" ,
96
96
"should" : " ^13.2.0" ,
97
97
"sinon" : " ^4.1.3" ,
98
98
"style-loader" : " ^0.20.1" ,
99
99
"supertest" : " ^3.0.0" ,
100
- "uglifyjs-webpack-plugin" : " ^1.1.8" ,
101
100
"url-loader" : " ^0.6.2" ,
102
101
"webpack" : " ^4.0.0-beta.1" ,
103
102
"webpack-cli" : " ^2.0.6" ,
You can’t perform that action at this time.
0 commit comments