From 75c585da19047bec2af1a55f5933e88a7f541a36 Mon Sep 17 00:00:00 2001 From: Chris Deacy Date: Thu, 30 Aug 2018 12:28:59 -0500 Subject: [PATCH] fixing invalid splitChunks example --- src/content/plugins/split-chunks-plugin.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/content/plugins/split-chunks-plugin.md b/src/content/plugins/split-chunks-plugin.md index 5e5a224b4d4b..f46a251cba6a 100644 --- a/src/content/plugins/split-chunks-plugin.md +++ b/src/content/plugins/split-chunks-plugin.md @@ -216,9 +216,13 @@ module.exports = { //... optimization: { splitChunks: { - test (chunks) { - //... - return true; + cacheGroups: { + vendors: { + test (chunks) { + //... + return true; + } + } } } }