File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
85
85
env . VITE_NODE_ENV === 'development'
86
86
? undefined
87
87
: {
88
- /** 打包时移除 console.log */
88
+ /** 打包时移除 console.log */
89
89
pure : [ 'console.log' ] ,
90
90
/** 打包时移除 debugger */
91
91
drop : [ 'debugger' ] ,
@@ -99,8 +99,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
99
99
rollupOptions : {
100
100
// 分包
101
101
output : {
102
- chunkFileNames : 'js/[name]-[hash].js' , // chunk包输出的文件夹名称
103
- entryFileNames : 'js/[name]-[hash].js' , // 入口文件输出的文件夹名称
102
+ chunkFileNames : 'assets/ js/[name]-[hash].js' , // chunk包输出的文件夹名称
103
+ entryFileNames : 'assets/ js/[name]-[hash].js' , // 入口文件输出的文件夹名称
104
104
assetFileNames : 'assets/[ext]/[name]-[hash].[ext]' , // 静态文件输出的文件夹名称
105
105
// 手动分包,将第三方库拆分到单独的chunk包中(注意这些包名必须存在,否则打包会报错)
106
106
manualChunks : {
You can’t perform that action at this time.
0 commit comments