mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
Fix Webpack magic comments for Windows (#413)
This commit is contained in:
parent
895d448bcf
commit
216cfd2033
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export const getI18n = async () => {
|
|||
if (availablePack === defaultPack) continue;
|
||||
if (i18nPacks[availablePack]) continue;
|
||||
const { default: languageData } = await import(
|
||||
/* webpackInclude: /i18n\/[^/]+\/languages\.js$/ */
|
||||
/* webpackInclude: /i18n[\/\\][^\/\\]+[\/\\]languages\.js$/ */
|
||||
/* webpackMode: "eager" */
|
||||
`./${toSep(availablePack, '-')}/languages.js`
|
||||
);
|
||||
|
@ -72,7 +72,7 @@ const loadLanguagePack = async pack => {
|
|||
// Load in the full pack
|
||||
// Use webpack magic to only build chunks for lang/index.js
|
||||
const { default: packData } = await import(
|
||||
/* webpackInclude: /i18n\/[^/]+\/index\.js$/ */
|
||||
/* webpackInclude: /i18n[\/\\][^\/\\]+[\/\\]index\.js$/ */
|
||||
/* webpackMode: "lazy" */
|
||||
`./${toSep(pack, '-')}/index.js`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue