File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
docs/default-theme-config Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,6 @@ $textColor = red
476
476
477
477
``` stylus
478
478
// .vuepress/style.styl, your extra styles.
479
- // variables from config.styl can be used here
480
479
#my-style {}
481
480
```
482
481
Original file line number Diff line number Diff line change @@ -28,10 +28,9 @@ module.exports = async function prepare (sourceDir) {
28
28
const hasUserOverride = fs . existsSync ( overridePath )
29
29
await writeTemp ( 'override.styl' , hasUserOverride ? `@import(${ JSON . stringify ( overridePath ) } )` : `` )
30
30
31
- const configPath = require . resolve ( '../default-theme/styles/config.styl' )
32
31
const stylePath = path . resolve ( sourceDir , '.vuepress/style.styl' ) . replace ( / [ \\ ] + / g, '/' )
33
32
const hasUserStyle = fs . existsSync ( stylePath )
34
- await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( configPath ) } )\n@import( ${ JSON . stringify ( stylePath ) } )` : `` )
33
+ await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( stylePath ) } )` : `` )
35
34
36
35
// Temporary tip, will be removed at next release.
37
36
if ( hasUserOverride && ! hasUserStyle ) {
You can’t perform that action at this time.
0 commit comments