forked from open-webui/open-webui
		
	Merge pull request #1316 from ryankupk/svelte-warnings
Update svelte.config.js to suppress unused CSS selector warnings
This commit is contained in:
		
						commit
						2fcc4aec4b
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -16,7 +16,15 @@ const config = { | ||||||
| 			assets: 'build', | 			assets: 'build', | ||||||
| 			fallback: 'index.html' | 			fallback: 'index.html' | ||||||
| 		}) | 		}) | ||||||
| 	} | 	}, | ||||||
|  |     onwarn: (warning, handler) => { | ||||||
|  |         const { code, _ } = warning; | ||||||
|  |         if (code === "css-unused-selector") | ||||||
|  |             return; | ||||||
|  | 
 | ||||||
|  |         handler(warning); | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export default config; | export default config; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Jaeryang Baek
						Timothy Jaeryang Baek