mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 14:11:07 +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 (
|
return (
|
||||||
// If it's inside node_modules
|
// If it's inside node_modules
|
||||||
/node_modules/.test(module.context) &&
|
/node_modules/.test(module.context) &&
|
||||||
// Do not externalize if the request is a CSS file
|
// 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)$/.test(module.request)
|
!/\.(css|less|scss|sass|styl|stylus|vue)$/.test(module.request)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user