This branch uses webpack
to build the app.
Feel free to check this version which is based on npm scripts.
- To build the app in memory for development execute
npm run start:dev
. - To build the app in the
./dist
folder for development, executenpm run build:dev
. - To build the app in the
./dist
folder for production, executenpm run build
. - To serve the
./dist
folder on a local server (after step 1. or 2.) executenpm run start
.
{
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"eslint": "eslint src/js",
"start:dev": "webpack-dev-server",
"build:dev": "webpack",
"build": "webpack -p",
"start": "browser-sync start --server dist/ --files dist/ --no-notify"
}
}