Skip to content

Commit c9bfcf4

Browse files
committed
add theme inheritance tip and remove unnecessary logs
1 parent 3ce23df commit c9bfcf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@vuepress/core/lib/node/dev/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ module.exports = class DevProcess extends EventEmitter {
189189
createServer () {
190190
const contentBase = path.resolve(this.context.sourceDir, '.vuepress/public')
191191

192-
console.log(this.webpackConfig)
193192
const serverConfig = Object.assign({
194193
disableHostCheck: true,
195194
compress: true,

packages/@vuepress/core/lib/node/loadTheme.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ module.exports = function loadTheme (ctx) {
3737
if (!theme.path) {
3838
throw new Error(`[vuepress] You must specify a theme, or create a local custom theme. \n For more details, refer to https://vuepress.vuejs.org/guide/custom-themes.html#custom-themes. \n`)
3939
}
40-
logger.tip(`Apply theme ${chalk.gray(theme.name)}`)
40+
let applyTip = `Apply theme ${chalk.magenta(theme.name)}`
4141
theme.entry.name = '@vuepress/internal-theme-entry-file'
4242

4343
let parentTheme = {}
4444
if (theme.entry.extend) {
4545
parentTheme = resolveTheme(ctx, themeResolver, true, theme.entry.extend)
4646
parentTheme.entry.name = '@vuepress/internal-parent-theme-entry-file'
47+
applyTip += chalk.gray(` (extends ${chalk.magenta(parentTheme.name)})`)
4748
}
49+
logger.tip(applyTip + ' ...')
4850

4951
logger.debug('theme', theme.name, theme.path)
5052
logger.debug('parentTheme', parentTheme.name, parentTheme.path)
@@ -76,7 +78,6 @@ function resolveTheme (ctx, resolver, ignoreLocal, theme) {
7678
const { siteConfig, options, sourceDir, vuepressDir, pluginAPI } = ctx
7779
const localThemePath = resolve(vuepressDir, 'theme')
7880
theme = theme || siteConfig.theme || options.theme
79-
console.log(theme)
8081

8182
let path
8283
let name

0 commit comments

Comments
 (0)