No name
2024-06-14 71c4edad635a971f3bf89f97caab3b820589b290
chore: improve build file naming convention and caching (#3908)

* fix: improve build file naming convention

* remove js to the entryFileName path

* replace dot to hyphen
1个文件已修改
4 ■■■■ 已修改文件
internal/vite-config/src/config/application.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
internal/vite-config/src/config/application.ts
@@ -63,8 +63,8 @@
        cssTarget: 'chrome80',
        rollupOptions: {
          output: {
            // 入口文件名(不能变,否则所有打包的 js hash 值全变了)
            entryFileNames: 'index.js',
            // 入口文件名
            entryFileNames: 'assets/entry/[name]-[hash].js',
            manualChunks: {
              vue: ['vue', 'pinia', 'vue-router'],
              antd: ['ant-design-vue', '@ant-design/icons-vue'],