Skip to content

Commit e08cc2e

Browse files
committed
chore($core): hide internal plugin log
1 parent f81f373 commit e08cc2e

File tree

1 file changed

+4
-2
lines changed
  • packages/@vuepress/core/lib/plugin-api

1 file changed

+4
-2
lines changed

packages/@vuepress/core/lib/plugin-api/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { PLUGIN_OPTION_MAP } = require('./constants')
44
const {
55
shortcutPackageResolver: { resolvePlugin },
66
datatypes: { assertTypes },
7+
env: { isDebug },
78
logger, chalk
89
} = require('@vuepress/shared-utils')
910

@@ -98,9 +99,10 @@ module.exports = class PluginAPI {
9899
additionalPages,
99100
globalUIComponents
100101
}) {
102+
const isInternalPlugin = pluginName.startsWith('@vuepress/internal-')
101103
if (shortcut) {
102-
logger.tip(`\nApply plugin ${chalk.magenta(shortcut)} ${chalk.gray(`(i.e. "${pluginName}")`)} ...`)
103-
} else {
104+
logger.tip(`\nApply plugin ${chalk.magenta(shortcut)} ${chalk.gray(`(i.e. "${pluginName}")`)} ...`, !isInternalPlugin)
105+
} else if (!isInternalPlugin || isDebug) {
104106
logger.tip(`\nApply plugin ${chalk.magenta(pluginName)} ...`)
105107
}
106108

0 commit comments

Comments
 (0)