Skip to content

Commit 6222170

Browse files
ekoeryantoulivz
authored andcommitted
fix: eject failed because config.styl not exist (#874)
1 parent 89d8a7a commit 6222170

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/@vuepress/core/lib/eject.js

-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,5 @@ module.exports = async (dir) => {
1313
const source = require.resolve('@vuepress/theme-default')
1414
const target = path.resolve(dir, '.vuepress/theme')
1515
await fs.copy(source, target)
16-
// remove the import to default theme override
17-
const styleConfig = path.resolve(target, 'styles/config.styl')
18-
const content = await fs.readFile(styleConfig, 'utf-8')
19-
const transformed = content.split('\n').slice(0, -2).join('\n')
20-
await fs.writeFile(styleConfig, transformed)
2116
logger.success(`\nCopied default theme into ${chalk.cyan(target)}.\n`)
2217
}

0 commit comments

Comments
 (0)