mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: invalid plugin mode warning for all
This commit is contained in:
parent
602cf12216
commit
9b3e7be3e7
@ -117,7 +117,7 @@ export default class Builder {
|
|||||||
p.mode = 'client'
|
p.mode = 'client'
|
||||||
} else if (p.mode === undefined) {
|
} else if (p.mode === undefined) {
|
||||||
p.mode = 'all'
|
p.mode = 'all'
|
||||||
} else if (!['client', 'server'].includes(p.mode)) {
|
} else if (!['client', 'server', 'all'].includes(p.mode)) {
|
||||||
consola.warn(`Invalid plugin mode (server/client/all): '${p.mode}'. Falling back to 'all'`)
|
consola.warn(`Invalid plugin mode (server/client/all): '${p.mode}'. Falling back to 'all'`)
|
||||||
p.mode = 'all'
|
p.mode = 'all'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user