mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	Merge pull request #21204 from strapi/fix/vite-template
fix: template vite config example
This commit is contained in:
		
						commit
						25a51f164c
					
				| @ -1,6 +1,6 @@ | ||||
| const { mergeConfig } = require('vite'); | ||||
| import { mergeConfig, type UserConfig } from 'vite'; | ||||
| 
 | ||||
| module.exports = (config) => { | ||||
| export default (config: UserConfig) => { | ||||
|   // Important: always return the modified config
 | ||||
|   return mergeConfig(config, { | ||||
|     resolve: { | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| const { mergeConfig } = require('vite'); | ||||
| import { mergeConfig, type UserConfig } from 'vite'; | ||||
| 
 | ||||
| module.exports = (config) => { | ||||
| export default (config: UserConfig) => { | ||||
|   // Important: always return the modified config
 | ||||
|   return mergeConfig(config, { | ||||
|     resolve: { | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| const { mergeConfig } = require('vite'); | ||||
| import { mergeConfig, type UserConfig } from 'vite'; | ||||
| 
 | ||||
| module.exports = (config) => { | ||||
| export default (config: UserConfig) => { | ||||
|   // Important: always return the modified config
 | ||||
|   return mergeConfig(config, { | ||||
|     resolve: { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexandre BODIN
						Alexandre BODIN