🔧 Fix for react-refresh plugin in production

This commit is contained in:
2022-06-14 13:04:29 -07:00
parent 7a3e0def34
commit a46eebb043
8 changed files with 233 additions and 12 deletions

View File

@@ -5,11 +5,11 @@
"main": "server/index.js",
"typings": "server/index.js",
"scripts": {
"build": "webpack --mode production",
"build": "NODE_ENV=production webpack --mode production",
"start": "npm run build && npm run server",
"client": "webpack serve --mode development --devtool inline-source-map --hot",
"server": "tsc -p tsconfig.server.json && node server/",
"dev": "concurrently \"nodemon\" \"npm run client\"",
"dev": "NODE_ENV=development concurrently \"nodemon\" \"npm run client\"",
"server-dev": "nodemon",
"docs": "jsdoc -c jsdoc.json"
},
@@ -38,6 +38,7 @@
"axios-rate-limit": "^1.3.0",
"axios-simple-cache-adapter": "^1.1.0",
"babel-polyfill": "^6.26.0",
"babel-preset-minify": "^0.5.2",
"better-docs": "^2.7.2",
"comlink-loader": "^2.0.0",
"compromise": "^13.11.3",