File tree Expand file tree Collapse file tree 6 files changed +15
-16
lines changed Expand file tree Collapse file tree 6 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 9
9
},
10
10
"scripts" : {
11
11
"build" : " webpack-cli" ,
12
- "build-prod" : " webpack-cli -p "
12
+ "build-prod" : " webpack-cli"
13
13
},
14
14
"version" : " 0.8.15" ,
15
15
"main" : " dist/blink.js" ,
Original file line number Diff line number Diff line change 10
10
},
11
11
"scripts" : {
12
12
"build" : " webpack-cli" ,
13
- "build-prod" : " webpack-cli -p "
13
+ "build-prod" : " webpack-cli"
14
14
},
15
15
"version" : " 0.8.15" ,
16
16
"devDependencies" : {
17
- "webpack-cli" : " ^3.3.5 "
17
+ "webpack-cli" : " ^4.10.0 "
18
18
},
19
19
"files" : [
20
20
" dist/*"
Original file line number Diff line number Diff line change 10
10
"debug" : " ^4.1.1"
11
11
},
12
12
"devDependencies" : {
13
- "webpack-cli" : " ^3.3.5 "
13
+ "webpack-cli" : " ^4.10.0 "
14
14
},
15
15
"scripts" : {
16
16
"build" : " webpack-cli" ,
17
- "build-prod" : " webpack-cli -p "
17
+ "build-prod" : " webpack-cli"
18
18
},
19
19
"version" : " 0.8.15" ,
20
20
"files" : [
Original file line number Diff line number Diff line change 12
12
"@babel/preset-env" : " ^7.4.2" ,
13
13
"babel-loader" : " ^8.0.5" ,
14
14
"lerna" : " ^3.16.2" ,
15
- "ts-loader" : " ^5.3.3 " ,
15
+ "ts-loader" : " ^9.4.1 " ,
16
16
"typescript" : " ^4.0.3" ,
17
- "uglifyjs -webpack-plugin" : " ^2.1.2 " ,
18
- "webpack" : " ^4.29.6 " ,
19
- "webpack-cli" : " ^3.3 .0" ,
17
+ "terser -webpack-plugin" : " ^5.3.6 " ,
18
+ "webpack" : " ^5.74.0 " ,
19
+ "webpack-cli" : " ^4.10 .0" ,
20
20
"webpack-merge" : " ^4.2.1"
21
21
},
22
22
"dependencies" : {
Original file line number Diff line number Diff line change 18
18
},
19
19
"scripts" : {
20
20
"build" : " tsc -p . && webpack" ,
21
- "build-prod" : " npm run build && webpack -p "
21
+ "build-prod" : " npm run build && webpack"
22
22
},
23
23
"devDependencies" : {
24
24
"typescript" : " ^4.4.2" ,
25
- "webpack" : " ^4.35.3 "
25
+ "webpack" : " ^5.74.0 "
26
26
},
27
27
"gitHead" : " a17bcee97d64897d0e9b429a8551f19eedc47091"
28
28
}
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
const webpack = require ( "webpack" ) ;
3
- const UglifyJSPlugin = require ( "uglifyjs -webpack-plugin" ) ;
3
+ const TerserPlugin = require ( "terser -webpack-plugin" ) ;
4
4
5
5
module . exports = {
6
6
7
7
mode : "development" ,
8
8
devtool : "cheap-module-source-map" ,
9
9
10
10
optimization : {
11
- minimizer : [ new UglifyJSPlugin ( ) ] ,
11
+ minimize : true ,
12
+ minimizer : [ new TerserPlugin ( ) ] ,
12
13
} ,
13
14
14
15
// entry: {
@@ -34,9 +35,7 @@ module.exports = {
34
35
// is NodeJS. Nevertheless, Webpack gets confused because it doesn't know
35
36
// anything about the (node-builtin) module fs, so we tell it to just ignore
36
37
// all references to it.
37
- node : {
38
- "fs" : "empty" ,
39
- } ,
38
+ resolve : { fallback : { fs : false } } ,
40
39
41
40
module : {
42
41
rules : [
You can’t perform that action at this time.
0 commit comments