forked from ppfun/pixelplanet
default to english only production build in webpack config
This commit is contained in:
parent
3aad00dca7
commit
ab840c6f23
|
@ -198,7 +198,7 @@ function buildWebpackClientConfigAllLangs() {
|
||||||
const webpackConfigClient = [];
|
const webpackConfigClient = [];
|
||||||
for (let l = 0; l < langs.length; l += 1) {
|
for (let l = 0; l < langs.length; l += 1) {
|
||||||
const lang = langs[l];
|
const lang = langs[l];
|
||||||
const cfg = buildWebpackClientConfig(false, false, lang, false);
|
const cfg = buildWebpackClientConfig(false, false, lang, false, false);
|
||||||
webpackConfigClient.push(cfg);
|
webpackConfigClient.push(cfg);
|
||||||
}
|
}
|
||||||
return webpackConfigClient;
|
return webpackConfigClient;
|
||||||
|
@ -224,7 +224,7 @@ module.exports = ({
|
||||||
development, analyze, locale || 'en', extract, clean,
|
development, analyze, locale || 'en', extract, clean,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return buildWebpackClientConfigAllLangs(development);
|
return buildWebpackClientConfig(false, false, 'en', false, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.buildWebpackClientConfig = buildWebpackClientConfig;
|
module.exports.buildWebpackClientConfig = buildWebpackClientConfig;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user