diff --git a/frontend/config/webpack.config.prod.js b/frontend/config/webpack.config.prod.js index 961ca99e79..b2931b221c 100644 --- a/frontend/config/webpack.config.prod.js +++ b/frontend/config/webpack.config.prod.js @@ -111,9 +111,6 @@ module.exports = { .relative(paths.appSrc, info.absoluteResourcePath) .replace(/\\/g, '/'), }, - optimization: { - concatenateModules: false, - }, resolve: { // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" @@ -276,6 +273,12 @@ module.exports = { ], }, plugins: [ + new webpack.LoaderOptionsPlugin({ + // test: /\.xxx$/, // may apply this only for some modules + options: { + concatenateModules: false + } + }), // Makes some environment variables available in index.html. // The public URL is available as %PUBLIC_URL% in index.html, e.g.: //