Commit 0606325d authored by Jeff Avallone's avatar Jeff Avallone

Giving locale files better names in built output

parent 50200ae7
......@@ -41,7 +41,10 @@ i18n
parse: data => data,
ajax: async (lng, options, callback) => {
try {
const { default: locale } = await import(`locales/${ lng }.yaml`);
const { default: locale } = await import(
/* webpackInclude: /\.yaml$/ */
/* webpackChunkName: "locale-[index]" */
`locales/${ lng }.yaml`);
callback(locale, { status: '200' });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment