mirror of
https://github.com/shadoll/vancouver.git
synced 2026-08-28 03:28:21 +00:00
feat: update primary color variables for light theme and enhance asset file naming in Vite config
This commit is contained in:
@@ -10,6 +10,17 @@ export default defineConfig({
|
||||
assetsDir: 'assets',
|
||||
sourcemap: false,
|
||||
minify: 'terser',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
assetFileNames: (assetInfo) => {
|
||||
// Keep SVG files and other images in the root for easier path resolution
|
||||
if (assetInfo.name?.endsWith('.svg') || assetInfo.name?.endsWith('.jpg') || assetInfo.name?.endsWith('.png')) {
|
||||
return '[name][extname]'
|
||||
}
|
||||
return 'assets/[name]-[hash][extname]'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
|
||||
Reference in New Issue
Block a user