File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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) {
2424 await writeTemp ( 'siteData.js' , dataCode )
2525
2626 // 4. handle user override
27- const overridePath = path . resolve ( sourceDir , '.vuepress/override.styl' )
27+ const overridePath = path . resolve ( sourceDir , '.vuepress/override.styl' ) . replace ( / [ \\ ] + / g , '/' )
2828 const hasUserOverride = fs . existsSync ( overridePath )
2929 await writeTemp ( 'override.styl' , hasUserOverride ? `@import(${ JSON . stringify ( overridePath ) } )` : `` )
3030
31- const stylePath = path . resolve ( sourceDir , '.vuepress/style.styl' )
31+ const stylePath = path . resolve ( sourceDir , '.vuepress/style.styl' ) . replace ( / [ \\ ] + / g , '/' )
3232 const hasUserStyle = fs . existsSync ( stylePath )
3333 await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( stylePath ) } )` : `` )
3434
You can’t perform that action at this time.
0 commit comments