mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 04:18:33 -05:00
fix: fix a regression that pages doesn't allow entry-only string format
fixes #3233
This commit is contained in:
@@ -11,9 +11,15 @@ const schema = createSchema(joi => joi.object({
|
||||
productionSourceMap: joi.boolean(),
|
||||
parallel: joi.boolean(),
|
||||
devServer: joi.object(),
|
||||
pages: joi.object().pattern(/\w+/, joi.object().keys({
|
||||
entry: joi.string().required()
|
||||
}).unknown(true)),
|
||||
pages: joi.object().pattern(
|
||||
/\w+/,
|
||||
joi.alternatives().try([
|
||||
joi.string(),
|
||||
joi.object().keys({
|
||||
entry: joi.string().required()
|
||||
}).unknown(true)
|
||||
])
|
||||
),
|
||||
crossorigin: joi.string().valid(['', 'anonymous', 'use-credentials']),
|
||||
integrity: joi.boolean(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user