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
This commit is contained in:
parent
65fba1c329
commit
71c4edad63
|
|
@ -63,8 +63,8 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) {
|
||||||
cssTarget: 'chrome80',
|
cssTarget: 'chrome80',
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
// 入口文件名(不能变,否则所有打包的 js hash 值全变了)
|
// 入口文件名
|
||||||
entryFileNames: 'index.js',
|
entryFileNames: 'assets/entry/[name]-[hash].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'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue