From 2474fa9eda618cb4041b0ce4830936f8f9301c10 Mon Sep 17 00:00:00 2001 From: InfinityLoop Date: Sat, 20 Feb 2021 23:23:44 +0900 Subject: [PATCH] build: use watch option to auto rebuild dependency Just want to make development convenient --- inst/templates/package.json.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inst/templates/package.json.txt b/inst/templates/package.json.txt index 1db0962..6836ae6 100644 --- a/inst/templates/package.json.txt +++ b/inst/templates/package.json.txt @@ -12,5 +12,9 @@ "@babel/preset-react": "^7.0.0", "css-loader": "^5.0.1", "style-loader": "^2.0.0" + }, + "scripts": { + "watch": "webpack --watch", + "build": "webpack" } }