mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-25 01:02:58 +02:00
integrate lingui for i18n. fixes #170
This commit is contained in:
@ -21,6 +21,11 @@ export default function(config, env, helpers) {
|
||||
htmlWebpackPlugin.plugin.options.preload = false;
|
||||
htmlWebpackPlugin.plugin.options.favicon = false;
|
||||
|
||||
// Required for lingui-macros
|
||||
let { rule } = helpers.getLoadersByName(config, 'babel-loader')[0];
|
||||
let babelConfig = rule.options;
|
||||
babelConfig.plugins.push('macros');
|
||||
|
||||
if (env.isProd) {
|
||||
config.devtool = false; // disable sourcemaps
|
||||
|
||||
|
Reference in New Issue
Block a user