From cba6ab72c4510f602e56c68f0a203cf940d2e23d Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Fri, 5 Jul 2024 14:55:14 +0800 Subject: [PATCH] Add development scripts for smoother development process Signed-off-by: Egor Savkin --- README.md | 3 +++ package.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a24c7472..a87bfc9e 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,6 @@ To build the .bundle.js from .jsx files: npm install 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. \ No newline at end of file diff --git a/package.json b/package.json index d4773640..5ffc98c8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "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": { "type": "git",