feat: add deploy script
This commit is contained in:
@@ -8,8 +8,13 @@ export default defineConfig({
|
||||
exclude: ['lucide-react'],
|
||||
},
|
||||
build: {
|
||||
// 确保生成带哈希的文件名(默认已启用)
|
||||
rollupOptions: {
|
||||
output: {
|
||||
// 确保文件名包含哈希,便于缓存管理
|
||||
entryFileNames: 'assets/[name]-[hash].js',
|
||||
chunkFileNames: 'assets/[name]-[hash].js',
|
||||
assetFileNames: 'assets/[name]-[hash].[ext]',
|
||||
manualChunks: {
|
||||
// React 核心
|
||||
'vendor-react': ['react', 'react-dom'],
|
||||
|
||||
Reference in New Issue
Block a user