| 
									
										
										
										
											2023-07-11 14:42:57 +02:00
										 |  |  | import {defineConfig} from 'vite'; | 
					
						
							| 
									
										
										
										
											2023-07-11 11:45:55 +02:00
										 |  |  | import laravel from 'laravel-vite-plugin'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import fs from 'fs'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-06 07:02:55 +02:00
										 |  |  | const host = '127.0.0.1'; | 
					
						
							| 
									
										
										
										
											2023-07-11 11:45:55 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default defineConfig({ | 
					
						
							|  |  |  |     plugins: [ | 
					
						
							|  |  |  |         laravel({ | 
					
						
							| 
									
										
										
										
											2023-07-12 07:07:06 +02:00
										 |  |  |             input: [ | 
					
						
							| 
									
										
										
										
											2023-07-23 08:26:12 +02:00
										 |  |  |                 'resources/assets/v2/sass/app.scss', | 
					
						
							|  |  |  |                 'resources/assets/v2/dashboard.js', | 
					
						
							| 
									
										
										
										
											2023-07-12 07:07:06 +02:00
										 |  |  |             ], | 
					
						
							| 
									
										
										
										
											2023-07-11 11:45:55 +02:00
										 |  |  |             refresh: true, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         }), | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     server: { | 
					
						
							|  |  |  |         usePolling: true, | 
					
						
							|  |  |  |         allowedHosts: '*.sd.local', | 
					
						
							|  |  |  |         host: '0.0.0.0', | 
					
						
							| 
									
										
										
										
											2023-07-11 14:42:57 +02:00
										 |  |  |         hmr: {host}, | 
					
						
							| 
									
										
										
										
											2023-08-06 07:02:55 +02:00
										 |  |  |         cors: true | 
					
						
							|  |  |  |         // https: {
 | 
					
						
							|  |  |  |         //     key: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.key`),
 | 
					
						
							|  |  |  |         //     cert: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.crt`),
 | 
					
						
							|  |  |  |         // },
 | 
					
						
							| 
									
										
										
										
											2023-07-11 11:45:55 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  | }); |