Add frontend to be served by backend.
This commit is contained in:
12
package.json
12
package.json
@@ -4,8 +4,9 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "nodemon ./src/js/app.js localhost 3000",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"start": "npm-run-all --parallel start-frontend start-backend",
|
||||
"start-backend": "nodemon ./backend/src/js/app.js localhost 3000",
|
||||
"start-frontend": "webpack --watch --config frontend/webpack.config.js"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
@@ -20,6 +21,11 @@
|
||||
"devDependencies": {
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"nodemon": "^2.0.4"
|
||||
"nodemon": "^2.0.4",
|
||||
"uglifyjs-webpack-plugin": "^2.2.0",
|
||||
"webpack": "^4.41.2",
|
||||
"webpack-cli": "^3.3.10",
|
||||
"webpack-dev-server": "^3.9.0",
|
||||
"npm-run-all": "^4.1.5"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user