From 5206277224e6366a574082a3e438c2c52b6a2112 Mon Sep 17 00:00:00 2001 From: misitebao Date: Thu, 24 Feb 2022 02:48:09 +0800 Subject: [PATCH] feat: add watcher in dev mode --- frontend/TS/package.json | 4 ++-- wails.tmpl.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/TS/package.json b/frontend/TS/package.json index 672f0cc..1d01065 100644 --- a/frontend/TS/package.json +++ b/frontend/TS/package.json @@ -5,7 +5,7 @@ "dev": "vite", "build:finally": "vue-tsc --noEmit && vite build --emptyOutDir", "build": "vite build --emptyOutDir", - "build:watch": "vue-tsc --noEmit && vite build --watch --emptyOutDir", + "build:watch": "vite build --watch --emptyOutDir", "preview": "vite preview" }, "dependencies": { @@ -18,4 +18,4 @@ "vite": "^2.7.0", "vue-tsc": "^0.28.10" } -} \ No newline at end of file +} diff --git a/wails.tmpl.json b/wails.tmpl.json index f981212..b633d77 100644 --- a/wails.tmpl.json +++ b/wails.tmpl.json @@ -4,6 +4,7 @@ "assetdir": "frontend/dist", "frontend:install": "npm install", "frontend:build": "npm run build -w js", + "frontend:dev:watcher": "npm run build:watch -w js", "author": { "name": "{{.AuthorName}}", "email": "{{.AuthorEmail}}"