diff --git a/lib/prepare.js b/lib/prepare.js index 39c09e01b1..12cea9e039 100644 --- a/lib/prepare.js +++ b/lib/prepare.js @@ -61,7 +61,7 @@ if (!Object.assign) Object.assign = require('object-assign')` // 5. handle user override const overridePath = path.resolve(sourceDir, '.vuepress/override.styl') - const hasUserOverride = options.useDefaultTheme && fs.existsSync(overridePath) + const hasUserOverride = fs.existsSync(overridePath) await writeTemp(`override.styl`, hasUserOverride ? `@import(${JSON.stringify(overridePath)})` : ``) // 6. handle enhanceApp.js