Skip to content

Commit

Permalink
fix: fix a regression that pages doesn't allow entry-only string fo…
Browse files Browse the repository at this point in the history
…rmat

fixes #3233
  • Loading branch information
haoqunjiang committed Jan 3, 2019
1 parent fb99079 commit a7fa191
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/@vue/cli-service/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),

Expand Down

0 comments on commit a7fa191

Please sign in to comment.