Skip to content

Commit

Permalink
fix: remove style override limitation to custom theme (close: 404) (#405
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ghys authored and ulivz committed May 11, 2018
1 parent e66a9ed commit 69bd59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69bd59d

Please sign in to comment.