Add frontend to be served by backend.

This commit is contained in:
2020-12-28 15:19:09 +01:00
parent 94226c140e
commit 391be9b833
18 changed files with 4905 additions and 8 deletions

View File

@@ -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"
}
}