File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ module.exports = async function prepare (sourceDir) {
24
24
await writeTemp ( 'siteData.js' , dataCode )
25
25
26
26
// 4. handle user override
27
- const overridePath = path . resolve ( sourceDir , '.vuepress/override.styl' )
27
+ const overridePath = path . resolve ( sourceDir , '.vuepress/override.styl' ) . replace ( / [ \\ ] + / g , '/' )
28
28
const hasUserOverride = fs . existsSync ( overridePath )
29
29
await writeTemp ( 'override.styl' , hasUserOverride ? `@import(${ JSON . stringify ( overridePath ) } )` : `` )
30
30
31
- const stylePath = path . resolve ( sourceDir , '.vuepress/style.styl' )
31
+ const stylePath = path . resolve ( sourceDir , '.vuepress/style.styl' ) . replace ( / [ \\ ] + / g , '/' )
32
32
const hasUserStyle = fs . existsSync ( stylePath )
33
33
await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( stylePath ) } )` : `` )
34
34
You can’t perform that action at this time.
0 commit comments