We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8db81c commit e570252Copy full SHA for e570252
packages/@vuepress/core/lib/dev.js
@@ -79,6 +79,17 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
79
const port = await resolvePort(cliOptions.port || ctx.siteConfig.port)
80
const { host, displayHost } = await resolveHost(cliOptions.host || ctx.siteConfig.host)
81
82
+ // debug in a running dev process.
83
+ process.stdout.on('data', chunk => {
84
+ const parsed = chunk.toString('utf-8').trim()
85
+ if (parsed === '*') {
86
+ console.log(Object.keys(ctx))
87
+ }
88
+ if (ctx[parsed]) {
89
+ console.log(ctx[parsed])
90
91
+ })
92
+
93
config
94
.plugin('vuepress-log')
95
.use(DevLogPlugin, [{
0 commit comments