From 0606325d6d58e83928fbb9e29cf484ba8da1aa4c Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Fri, 11 Jan 2019 21:02:07 -0500 Subject: [PATCH] Giving locale files better names in built output --- src/i18n.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/i18n.js b/src/i18n.js index 7bb4e10..f658365 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -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' }); }