Add development scripts for smoother development process

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-07-05 14:55:14 +08:00
parent d3cc86dfa5
commit cba6ab72c4
2 changed files with 6 additions and 1 deletions

View File

@ -25,3 +25,6 @@ To build the .bundle.js from .jsx files:
npm install npm install
npm run build npm run build
``` ```
Development builds are also available. `npm run build-dev` to re/build once, or `npm run start-dev` for incremental
continuous builds as source files change.

View File

@ -6,7 +6,9 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "npx webpack --watch", "start": "npx webpack --watch",
"build": "npx webpack" "build": "npx webpack",
"start-dev": "npx webpack --watch --mode=development --devtool=inline-source-map",
"build-dev": "npx webpack --mode=development --devtool=inline-source-map"
}, },
"repository": { "repository": {
"type": "git", "type": "git",