From 4adfdf3313c31d259226e69d09479721320b5bc4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 13 Dec 2017 05:48:41 +0330 Subject: [PATCH] fix commonCunks to ignore vue files from adding into vendor --- lib/builder/webpack/client.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index a4c3f92da6..393e7f0e97 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -204,8 +204,8 @@ function commonChunksPlugin(config) { return ( // If it's inside node_modules /node_modules/.test(module.context) && - // Do not externalize if the request is a CSS file - !/\.(css|less|scss|sass|styl|stylus)$/.test(module.request) + // Do not externalize if the request is a CSS file or a Vue file which can potentially emit CSS assets! + !/\.(css|less|scss|sass|styl|stylus|vue)$/.test(module.request) ) } })