fix: config `__dirname` resolve
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
92bfce0f7e
commit
f3f3cac2b4
|
|
@ -19,7 +19,7 @@ function localesPlugin(): Plugin {
|
|||
name: "locales-merge",
|
||||
enforce: "post",
|
||||
generateBundle(options, bundle) {
|
||||
const localesDir = path.resolve(__dirname, "locales")
|
||||
const localesDir = path.resolve(__dirname, "../locales")
|
||||
const namespaces = fs.readdirSync(localesDir)
|
||||
const languageResources = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@ export default ({ mode }) => {
|
|||
__debug_proxy: resolve(ROOT, "/__debug_proxy.html"),
|
||||
},
|
||||
output: {
|
||||
// experimentalMinChunkSize: 500_000,
|
||||
// 10KB
|
||||
experimentalMinChunkSize: 10_000,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue