Reduce Docker image size
- Removed node_modules from client after compilation - Added copy-webpack-plugin to copy required JS and fonts to dist - Adjusted server to serve files from client/dist - add js-yaml to server packages in order to use npm install --production
This commit is contained in:
parent
ed2655b78e
commit
43edf35637
7 changed files with 258 additions and 18 deletions
|
|
@ -72,6 +72,7 @@
|
|||
"@babel/preset-react": "^7.0.0",
|
||||
"babel-loader": "^8.0.6",
|
||||
"clean-css-cli": "^4.2.1",
|
||||
"copy-webpack-plugin": "^5.0.5",
|
||||
"css-loader": "^2.1.0",
|
||||
"file-loader": "^3.0.1",
|
||||
"node-sass": "^4.12.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue