fix commonCunks to ignore vue files from adding into vendor

This commit is contained in:
Pooya Parsa 2017-12-13 05:48:41 +03:30
parent 4f55aadd1e
commit 4adfdf3313

View File

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