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) ) } })