From 9d23aa57bf5ef7a4d84a4e026c088c9e226e8fe0 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Tue, 22 May 2018 14:40:11 +0300 Subject: [PATCH 1/2] docs(plugins) Link split chunks example from the plugin page --- src/content/plugins/split-chunks-plugin.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/plugins/split-chunks-plugin.md b/src/content/plugins/split-chunks-plugin.md index c0ae983caa92..43a1a5eb59f8 100644 --- a/src/content/plugins/split-chunks-plugin.md +++ b/src/content/plugins/split-chunks-plugin.md @@ -3,9 +3,12 @@ title: SplitChunksPlugin contributors: - sokra - jeremenichelli + - EugeneHlushko related: + - title: webpack's automatic deduplication algorthim example + url: https://github.com/webpack/webpack/blob/master/examples/many-pages/README.md - title: "webpack 4: Code Splitting, chunk graph and the splitChunks optimization" - url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366 + url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366 --- Originally, chunks (and modules imported inside them) were connected by a parent-child relationship in the internal webpack graph. The `CommonsChunkPlugin` was used to avoid duplicated dependencies across them, but further optimizations where not possible From 7143eb0a3cb3a13b10d2e5d49145a41550e21575 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Tue, 22 May 2018 22:22:57 +0300 Subject: [PATCH 2/2] docs(plugins) Fix md formatting in split chunks --- src/content/plugins/split-chunks-plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/plugins/split-chunks-plugin.md b/src/content/plugins/split-chunks-plugin.md index 43a1a5eb59f8..0ca86abc885e 100644 --- a/src/content/plugins/split-chunks-plugin.md +++ b/src/content/plugins/split-chunks-plugin.md @@ -8,7 +8,7 @@ related: - title: webpack's automatic deduplication algorthim example url: https://github.com/webpack/webpack/blob/master/examples/many-pages/README.md - title: "webpack 4: Code Splitting, chunk graph and the splitChunks optimization" - url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366 + url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366 --- Originally, chunks (and modules imported inside them) were connected by a parent-child relationship in the internal webpack graph. The `CommonsChunkPlugin` was used to avoid duplicated dependencies across them, but further optimizations where not possible