File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/@vuepress/core/lib/plugin-api Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const { PLUGIN_OPTION_MAP } = require('./constants')
4
4
const {
5
5
shortcutPackageResolver : { resolvePlugin } ,
6
6
datatypes : { assertTypes } ,
7
+ env : { isDebug } ,
7
8
logger, chalk
8
9
} = require ( '@vuepress/shared-utils' )
9
10
@@ -98,9 +99,10 @@ module.exports = class PluginAPI {
98
99
additionalPages,
99
100
globalUIComponents
100
101
} ) {
102
+ const isInternalPlugin = pluginName . startsWith ( '@vuepress/internal-' )
101
103
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 ) {
104
106
logger . tip ( `\nApply plugin ${ chalk . magenta ( pluginName ) } ...` )
105
107
}
106
108
You can’t perform that action at this time.
0 commit comments