|
|
@ -95,12 +95,24 @@ module.exports = configure(function (ctx) {
|
|
|
|
viteConf.build.rollupOptions = {
|
|
|
|
viteConf.build.rollupOptions = {
|
|
|
|
...viteConf.build.rollupOptions ?? {},
|
|
|
|
...viteConf.build.rollupOptions ?? {},
|
|
|
|
output: {
|
|
|
|
output: {
|
|
|
|
manualChunks: {
|
|
|
|
manualChunks (id) {
|
|
|
|
lodash: ['lodash-es', 'lodash'],
|
|
|
|
if (id.includes('lodash')) {
|
|
|
|
quasar: ['quasar', 'quasar/src/components']
|
|
|
|
return 'lodash'
|
|
|
|
|
|
|
|
} else if (id.includes('quasar')) {
|
|
|
|
|
|
|
|
return 'quasar'
|
|
|
|
|
|
|
|
} else if (id.includes('pages/Admin')) {
|
|
|
|
|
|
|
|
return 'admin'
|
|
|
|
|
|
|
|
} else if (id.includes('pages/Profile')) {
|
|
|
|
|
|
|
|
return 'profile'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
viteConf.build.chunkSizeWarningLimit = 5000
|
|
|
|
|
|
|
|
viteConf.build.dynamicImportVarsOptions = {
|
|
|
|
|
|
|
|
warnOnError: true,
|
|
|
|
|
|
|
|
include: ['!/_blocks/**']
|
|
|
|
|
|
|
|
}
|
|
|
|
viteConf.optimizeDeps.include = [
|
|
|
|
viteConf.optimizeDeps.include = [
|
|
|
|
'prosemirror-state',
|
|
|
|
'prosemirror-state',
|
|
|
|
'prosemirror-transform',
|
|
|
|
'prosemirror-transform',
|
|
|
|