Browse Source

feat(nc-gui): split chunks

pull/3801/head
braks 2 years ago
parent
commit
afef71f111
  1. 15
      packages/nc-gui/nuxt.config.ts

15
packages/nc-gui/nuxt.config.ts

@ -54,6 +54,21 @@ export default defineNuxtConfig({
commonjsOptions: {
ignoreTryCatch: true,
},
minify: true,
rollupOptions: {
output: {
manualChunks(id) {
const chunks = ['ant-design-vue', 'nocodb-sdk', 'vue-router', 'vue-i18n']
if (id.includes('/node_modules/')) {
for (const chunkName of chunks) {
if (id.includes(chunkName)) {
return chunkName
}
}
}
},
},
},
},
plugins: [
vueI18n({

Loading…
Cancel
Save