From 62326699d044589b4df4f3261456ea4838910472 Mon Sep 17 00:00:00 2001 From: Greg B Date: Mon, 21 Sep 2020 20:17:41 -0400 Subject: [PATCH] convience method Not perfect but this reloads when there are changes (still a bit slow) -k kill the process before making a new one, "." the directory to watch, -e exlude "dist/" then the command to run.. npm dev --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e10cfd..8570566 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "", "main": "webpack.config.js", "scripts": { - "dev": "webpack -p && qode --inspect ./dist/main.js" + "dev": "webpack -p && qode --inspect ./dist/main.js", + "start": "onchange -i -k \".\" -e \"dist/**\" -- npm run dev" }, "dependencies": { "@nodegui/vue-nodegui": "0.0.1", @@ -18,6 +19,9 @@ "webpack": "^4.43.0", "webpack-cli": "^3.3.12" }, + "devDependencies": { + "onchange": "^7.0.2" + }, "author": "", "license": "ISC" }