File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 52
52
},
53
53
"scripts" : {
54
54
"build-proto" : " pbf src/proto/rpcEvent.proto > src/generated/rpcEvent.js && pbf src/proto/rpcMessage.proto > src/generated/rpcMessage.js" ,
55
- "build" : " npm run build-proto && webpack --env. production && tsc --build tsconfig.build-server.json" ,
56
- "watch" : " npm run build-proto && concurrently \" webpack --watch\" \" tsc --build tsconfig.build-server.json --watch\" " ,
55
+ "build" : " npm run build-proto && webpack --mode= production && tsc --build tsconfig.build-server.json" ,
56
+ "watch" : " npm run build-proto && concurrently \" webpack --mode=development -- watch\" \" tsc --build tsconfig.build-server.json --watch\" " ,
57
57
"test" : " echo \" Error: no test specified\" && exit 1" ,
58
58
"lint" : " eslint --ext .ts,.tsx src/"
59
59
},
Original file line number Diff line number Diff line change 1
1
const path = require ( "path" ) ;
2
2
const HtmlWebpackPlugin = require ( "html-webpack-plugin" ) ;
3
3
4
- const makeConfig = ( env = { } ) => ( {
5
- mode : env . production ? "production" : "development" ,
4
+ module . exports = {
6
5
module : {
7
6
rules : [
8
7
{
@@ -25,6 +24,4 @@ const makeConfig = (env = {}) => ({
25
24
template : "./src/client/index.html"
26
25
} )
27
26
]
28
- } ) ;
29
-
30
- module . exports = makeConfig ;
27
+ } ;
You can’t perform that action at this time.
0 commit comments