feat: add watcher in dev mode

This commit is contained in:
misitebao 2022-02-24 02:48:09 +08:00
parent 9943131689
commit 5206277224
2 changed files with 3 additions and 2 deletions

View File

@ -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"
}
}
}

View File

@ -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}}"