mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
fix: remove style override limitation to custom theme (close: 404) (#405)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user