mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-08-30 10:52:04 +08:00
fix: watch
This commit is contained in:
@@ -25,6 +25,7 @@ function watchMain() {
|
|||||||
root: join(__dirname, '../src/main'),
|
root: join(__dirname, '../src/main'),
|
||||||
build: {
|
build: {
|
||||||
outDir: '../../dist/main',
|
outDir: '../../dist/main',
|
||||||
|
watch: true,
|
||||||
},
|
},
|
||||||
plugins: [{
|
plugins: [{
|
||||||
name: 'electron-main-watcher',
|
name: 'electron-main-watcher',
|
||||||
@@ -48,6 +49,7 @@ function watchPreload(server) {
|
|||||||
root: join(__dirname, '../src/preload'),
|
root: join(__dirname, '../src/preload'),
|
||||||
build: {
|
build: {
|
||||||
outDir: '../../dist/preload',
|
outDir: '../../dist/preload',
|
||||||
|
watch: true,
|
||||||
},
|
},
|
||||||
plugins: [{
|
plugins: [{
|
||||||
name: 'electron-preload-watcher',
|
name: 'electron-preload-watcher',
|
||||||
|
Reference in New Issue
Block a user