mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
fix commonCunks to ignore vue files from adding into vendor
This commit is contained in:
parent
4f55aadd1e
commit
4adfdf3313
@ -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)
|
||||
)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user