mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix: bundle resources other than js(x)/json in node_modules (#4913)
This commit is contained in:
parent
3516580701
commit
71a70fe56c
@ -16,8 +16,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
|||||||
|
|
||||||
normalizeWhitelist() {
|
normalizeWhitelist() {
|
||||||
const whitelist = [
|
const whitelist = [
|
||||||
/\.css$/,
|
/\.(?!js(x|on)?$)/i
|
||||||
/\?vue&type=style/
|
|
||||||
]
|
]
|
||||||
for (const pattern of this.options.build.transpile) {
|
for (const pattern of this.options.build.transpile) {
|
||||||
if (pattern instanceof RegExp) {
|
if (pattern instanceof RegExp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user