We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
操作步骤: 步骤一:vite.config.js开启以下代码
rollupOptions: { output: { manualChunks(id) { if (id.includes('node_modules')) { return id.toString().split("node_modules/")[1].split("/")[0].toString(); } } } }
步骤二:执行yarn build命令 步骤三:进入后台,切换布局为混合 步骤四:布局异常
The text was updated successfully, but these errors were encountered:
估计拆分拆到大动脉了,等测试看看
Sorry, something went wrong.
不要拆大动脉,参考:
` const dependencies = require('./package.json').dependencies;
output: { manualChunks(id) { // 这个ID,就是所有文件的绝对路径 if (id.includes("node_modules")) { // 指定需要拆分的第三方库或模块 const dependenciesKeys = Object.keys(dependencies); const match = dependenciesKeys.find((item) => { return id.includes(item); }); const notSplit = ['vue', '@arco-design/web-vue', 'lodash']; if (match && !notSplit.includes(match)) { return match; } } } } `
kanyxmo
No branches or pull requests
操作步骤:
步骤一:vite.config.js开启以下代码
步骤二:执行yarn build命令
步骤三:进入后台,切换布局为混合
步骤四:布局异常
The text was updated successfully, but these errors were encountered: