adding scripts for heroku to properly run express app to serve files
This commit is contained in:
+3
-1
@@ -7,7 +7,8 @@
|
||||
"start:mac": "NODE_ENV=development webpack-dev-server --config ./webpack.config.js --mode development --color --progress",
|
||||
"start:windows": "set NODE_ENV=development& webpack-dev-server --config ./webpack.config.js --mode development --color --progress",
|
||||
"build": "set NODE_ENV=production& webpack --mode production --color --progress",
|
||||
"heroku-postbuild": "webpack -p"
|
||||
"postinstall": "webpack -p",
|
||||
"start": "node heroku_server.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -23,6 +24,7 @@
|
||||
"@material-ui/core": "^3.8.1",
|
||||
"@material-ui/icons": "^3.0.1",
|
||||
"axios": "^0.19.0",
|
||||
"express": "^4.17.1",
|
||||
"react": "^16.7.0",
|
||||
"react-dom": "^16.7.0",
|
||||
"react-router-dom": "^4.3.1",
|
||||
|
||||
Reference in New Issue
Block a user