Allow cli pass siteConfig to @vuepress/core #2195
Labels
status: core team review
Priority issues for the core team to review
type: feature request
Request to add a new feature
Uh oh!
There was an error while loading. Please reload this page.
Feature request
@vuepress/core
can receivesiteConfig
parameters, but cli does not declare this command line parameter.i have been test on local, just modify
lib/registerCoreCommands.js
, add one line code.According to this example, we can easily pass an object to cli
https://github.com/cacjs/cac#dot-nested-options
relative issue:
#1955
It’s useful when you’re writing tests and don’t want to depend on actual config file.
https://vuepress.vuejs.org/api/node.html#siteconfig
@yyx990803
The text was updated successfully, but these errors were encountered: