- Do it first
npm install --save-dev nodemon
- Then add
"start:dev": "nodemon -r esm dist/store/server/index.js"
in the script section file package.json
-
Open 3 terminals
-
execute commands (each in a separate terminal)
npm run build:watch
npm run start-api
npm run start:dev
nodemon views file change and restarts the store
"build:watch" first builds everything, and then rebuilds only the changed
it does not reload the page in the browser automatically, but significantly speeds up the development process
You can add it by making Pull Request to the https://github.com/Cezerin2/cezerin2.github.io