|
@@ -36,7 +36,7 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) {
|
|
});
|
|
});
|
|
|
|
|
|
const pathResolve = (pathname: string) => resolve(root, '.', pathname);
|
|
const pathResolve = (pathname: string) => resolve(root, '.', pathname);
|
|
-
|
|
|
|
|
|
+ const timestamp = new Date().getTime();
|
|
const applicationConfig: UserConfig = {
|
|
const applicationConfig: UserConfig = {
|
|
base: VITE_PUBLIC_PATH,
|
|
base: VITE_PUBLIC_PATH,
|
|
resolve: {
|
|
resolve: {
|
|
@@ -64,7 +64,7 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) {
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
output: {
|
|
output: {
|
|
// 入口文件名
|
|
// 入口文件名
|
|
- entryFileNames: 'assets/[name].js',
|
|
|
|
|
|
+ entryFileNames: `assets/entry/[name]-[hash]-${timestamp}.js`,
|
|
manualChunks: {
|
|
manualChunks: {
|
|
vue: ['vue', 'pinia', 'vue-router'],
|
|
vue: ['vue', 'pinia', 'vue-router'],
|
|
antd: ['ant-design-vue', '@ant-design/icons-vue'],
|
|
antd: ['ant-design-vue', '@ant-design/icons-vue'],
|