fix: watch
This commit is contained in:
		
							parent
							
								
									bc79511ca1
								
							
						
					
					
						commit
						74d81199e6
					
				| 
						 | 
				
			
			@ -25,6 +25,7 @@ function watchMain() {
 | 
			
		|||
    root: join(__dirname, '../src/main'),
 | 
			
		||||
    build: {
 | 
			
		||||
      outDir: '../../dist/main',
 | 
			
		||||
      watch: true,
 | 
			
		||||
    },
 | 
			
		||||
    plugins: [{
 | 
			
		||||
      name: 'electron-main-watcher',
 | 
			
		||||
| 
						 | 
				
			
			@ -48,6 +49,7 @@ function watchPreload(server) {
 | 
			
		|||
    root: join(__dirname, '../src/preload'),
 | 
			
		||||
    build: {
 | 
			
		||||
      outDir: '../../dist/preload',
 | 
			
		||||
      watch: true,
 | 
			
		||||
    },
 | 
			
		||||
    plugins: [{
 | 
			
		||||
      name: 'electron-preload-watcher',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue