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:
+2
-2
@@ -1,8 +1,8 @@
|
||||
/* CSS Custom Properties for theming */
|
||||
:root {
|
||||
/* Light theme */
|
||||
--primary-color: #2563eb;
|
||||
--primary-hover: #1d4ed8;
|
||||
--primary-color: #374151;
|
||||
--primary-hover: #1f2937;
|
||||
--bg-color: #ffffff;
|
||||
--bg-secondary: #f8fafc;
|
||||
--bg-hover: #f1f5f9;
|
||||
|
||||
@@ -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