Skip to content

Commit

Permalink
feat($core): support array as plugin options (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored and ulivz committed Mar 30, 2019
1 parent 61c5954 commit 9e07b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/node/plugin-api/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.flattenPlugin = function (
pluginContext,
self
) {
const { valid, warnMsg } = assertTypes(pluginOptions, [Object, Boolean])
const { valid, warnMsg } = assertTypes(pluginOptions, [Object, Array, Boolean])
if (!valid) {
if (pluginOptions !== undefined) {
logger.warn(
Expand Down

0 comments on commit 9e07b1e

Please sign in to comment.