Commit 4db2f03b by haojie

1

parent 647eddc6
......@@ -70,20 +70,12 @@ export default defineConfig(({ mode }) => {
/**
* 整个项目打包
*/
// output: {
// manualChunks: {
// // 拆分代码,这个就是分包,配置完后自动按需加载
// vue: ['vue', 'vue-router', 'vuex'],
// },
// },
/**
* 模块打包
*/
// 这里就是修改入口文件位置
// input: '/src/pages/CopywritingGeneration/index.html',
// output: {
// manualChunks: undefined,
// },
output: {
manualChunks: {
// 拆分代码,这个就是分包,配置完后自动按需加载
vue: ['vue', 'vue-router', 'vuex'],
},
},
},
},
esbuild: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment