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", "dev": "vite",
"build:finally": "vue-tsc --noEmit && vite build --emptyOutDir", "build:finally": "vue-tsc --noEmit && vite build --emptyOutDir",
"build": "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" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {

View File

@ -4,6 +4,7 @@
"assetdir": "frontend/dist", "assetdir": "frontend/dist",
"frontend:install": "npm install", "frontend:install": "npm install",
"frontend:build": "npm run build -w js", "frontend:build": "npm run build -w js",
"frontend:dev:watcher": "npm run build:watch -w js",
"author": { "author": {
"name": "{{.AuthorName}}", "name": "{{.AuthorName}}",
"email": "{{.AuthorEmail}}" "email": "{{.AuthorEmail}}"