New enterprise feature
This commit is contained in:
@@ -50,6 +50,8 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
// For production builds: ensure assets have correct paths
|
||||
// Base path should be '/' for root deployment
|
||||
// In development mode: inline source maps for better debugging
|
||||
// In production mode: external source maps
|
||||
sourcemap: isDevelopment ? 'inline' : true,
|
||||
@@ -66,6 +68,15 @@ export default defineConfig(({ mode }) => {
|
||||
charts: ['recharts'],
|
||||
forms: ['react-hook-form', 'zod'],
|
||||
},
|
||||
// Ensure assets are placed in assets directory with proper names
|
||||
assetFileNames: (assetInfo) => {
|
||||
if (assetInfo.name.endsWith('.css')) {
|
||||
return 'assets/[name].[hash].[ext]';
|
||||
}
|
||||
return 'assets/[name].[hash].[ext]';
|
||||
},
|
||||
chunkFileNames: 'assets/[name].[hash].js',
|
||||
entryFileNames: 'assets/[name].[hash].js',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user