修复 markdown 资源处理

This commit is contained in:
purocean
2019-08-19 20:38:45 +08:00
parent 130cfa3860
commit ea16df3f5b
+1 -1
View File
@@ -11,5 +11,5 @@ try {
fs.copySync(path.join(__dirname, 'src/assets'), assetsPath)
// 复制 markdown,处理相对路径
const md = fs.readFileSync('README.md').toString('UTF-8').replace(/\]\(\.\/help\//ig, '](./').replace(/src="\.\/help/ig, 'src="./')
const md = fs.readFileSync('README.md').toString('UTF-8').replace(/\]\(\.\/help\//ig, '](./').replace(/src="\.\/help\//ig, 'src="./')
fs.writeFileSync(path.join(__dirname, './help/README.md'), md)