Skip to content

Commit

Permalink
fix: normalize override stylus file path in windows (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
NonPolynomial authored and ulivz committed Jan 8, 2019
1 parent 38d1dea commit 9665196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = (options, ctx) => ({

const themePalette = path.resolve(ctx.themePath, 'styles/palette.styl')
const userPalette = path.resolve(sourceDir, '.vuepress/styles/palette.styl')
.replace(/[\\]+/g, '/')

const themePaletteContent = fs.existsSync(themePalette)
? `@import(${JSON.stringify(themePalette)})`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = (options, ctx) => ({

const themeStyle = path.resolve(ctx.themePath, 'styles/index.styl')
const userStyle = path.resolve(sourceDir, '.vuepress/styles/index.styl')
.replace(/[\\]+/g, '/')

const themeStyleContent = fs.existsSync(themeStyle)
? `@import(${JSON.stringify(themeStyle)})`
Expand Down

0 comments on commit 9665196

Please sign in to comment.