forked from github/dataease
commit
e0af285502
@ -19,9 +19,15 @@ export default {
|
|||||||
chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`,
|
chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`,
|
||||||
assetFileNames: `assets/[ext]/[name]-${pkg.version}-${pkg.name}.[ext]`,
|
assetFileNames: `assets/[ext]/[name]-${pkg.version}-${pkg.name}.[ext]`,
|
||||||
entryFileNames: `js/[name]-${pkg.version}-${pkg.name}.js`,
|
entryFileNames: `js/[name]-${pkg.version}-${pkg.name}.js`,
|
||||||
manualChunks(id: string) {
|
manualChunks(id: string, { getModuleInfo }) {
|
||||||
if (id.includes('node_modules')) {
|
if (id.includes('node_modules')) {
|
||||||
return id.toString().split('node_modules/')[1].split('/')[0].toString()
|
return id.toString().split('node_modules/')[1].split('/')[0].toString()
|
||||||
|
} else if (
|
||||||
|
id.includes('.vue') &&
|
||||||
|
['App.vue', 'ConfigGlobal.vue', 'ExportExcel.vue'].every(ele => !id.includes(ele)) &&
|
||||||
|
getModuleInfo(id).code.length < 10000
|
||||||
|
) {
|
||||||
|
return 'vendor'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,10 +28,10 @@ export const useI18n = (
|
|||||||
} => {
|
} => {
|
||||||
const normalFn = {
|
const normalFn = {
|
||||||
t: (key: string) => {
|
t: (key: string) => {
|
||||||
|
console.log('window.de-i18nDe', key, namespace)
|
||||||
return getKey(namespace, key)
|
return getKey(namespace, key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('window.de-i18nDe', i18n)
|
|
||||||
|
|
||||||
if (!i18n) {
|
if (!i18n) {
|
||||||
return normalFn
|
return normalFn
|
||||||
|
Loading…
Reference in New Issue
Block a user