From df8375356dc46c22bd9583a655135c62f30dd01d Mon Sep 17 00:00:00 2001 From: sharh <609557623@qq.com> Date: Wed, 6 Jun 2018 20:09:20 +0800 Subject: [PATCH 1/2] cacheGroups addCache test correctly --- src/content/plugins/split-chunks-plugin.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/content/plugins/split-chunks-plugin.md b/src/content/plugins/split-chunks-plugin.md index 5ea9a2147d2f..589b6d82dcb6 100644 --- a/src/content/plugins/split-chunks-plugin.md +++ b/src/content/plugins/split-chunks-plugin.md @@ -193,10 +193,15 @@ module.exports = { //... optimization: { splitChunks: { - test (chunks) { - //... - return true - } + // cacheGroups test + cacheGroups: { + commons: { + test (chunks) { + //... + return true + } + } + } } } } From a9292a1e9b8b736ebc7f93b25d98bd5d5f676153 Mon Sep 17 00:00:00 2001 From: Fernando Montoya Date: Tue, 18 Sep 2018 03:28:26 +0200 Subject: [PATCH 2/2] Update split-chunks-plugin.md --- 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 16c85f8b4ee1..bf29e9790954 100644 --- a/src/content/plugins/split-chunks-plugin.md +++ b/src/content/plugins/split-chunks-plugin.md @@ -226,7 +226,7 @@ module.exports = { } } } -} +}; ``` ## Examples