mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🎨 refactor: Prevent Font Asset Hashing in Vite Config (#3865)
This commit is contained in:
parent
0a359aa705
commit
6936d0059f
1 changed files with 6 additions and 1 deletions
|
|
@ -120,7 +120,12 @@ export default defineConfig({
|
|||
},
|
||||
entryFileNames: 'assets/[name].[hash].js',
|
||||
chunkFileNames: 'assets/[name].[hash].js',
|
||||
assetFileNames: 'assets/[name].[hash].[ext]',
|
||||
assetFileNames: (assetInfo) => {
|
||||
if (assetInfo.name && /\.(woff|woff2|eot|ttf|otf)$/.test(assetInfo.name)) {
|
||||
return 'assets/[name][extname]';
|
||||
}
|
||||
return 'assets/[name].[hash][extname]';
|
||||
},
|
||||
},
|
||||
/**
|
||||
* Ignore "use client" waning since we are not using SSR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue