From da266889e120e9e763a7dce444b876f524833352 Mon Sep 17 00:00:00 2001 From: jakub-g Date: Thu, 2 May 2019 09:48:21 +0200 Subject: [PATCH] doc: add info about module concatenation --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f8bd9fc..ffa84f5 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,17 @@ plugins: [new Visualizer({ --- ![](https://cloud.githubusercontent.com/assets/1145857/10471320/5b284d60-71da-11e5-8d35-7d1d4c58843a.png) + + +## FAQ + +**Q: How to avoid "file.js + 143 modules" issue, which groups many input files into one large piece in the graph?** + +A: You need to disable `ModuleConcatenationPlugin`. With webpack 4, you can do this by passing the following to the config: + +``` + ... + optimization: { + concatenateModules: false, + }, +```