Skip to content

Commit 9665196

Browse files
NonPolynomialulivz
authored andcommitted
fix: normalize override stylus file path in windows (#1164)
1 parent 38d1dea commit 9665196

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/@vuepress/core/lib/internal-plugins/palette/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = (options, ctx) => ({
2222

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

2627
const themePaletteContent = fs.existsSync(themePalette)
2728
? `@import(${JSON.stringify(themePalette)})`

packages/@vuepress/core/lib/internal-plugins/style/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = (options, ctx) => ({
1717

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

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

0 commit comments

Comments
 (0)