|
@@ -63,9 +63,13 @@ export default defineConfig({
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
|
- input: entryConfig()
|
|
|
|
|
|
|
+ input: entryConfig(),
|
|
|
|
|
+ output: { //静态资源分类打包
|
|
|
|
|
+ chunkFileNames: 'js/[name]-[hash].js',
|
|
|
|
|
+ entryFileNames: 'js/[name]-[hash].js',
|
|
|
|
|
+ assetFileNames: 'static/[name]-[hash].[ext]'
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
- reportCompressedSize: false,
|
|
|
|
|
- assetsDir: 'static'
|
|
|
|
|
|
|
+ reportCompressedSize: false
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|