Skip to content

Commit

Permalink
修复 markdown 资源处理
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Aug 19, 2019
1 parent 130cfa3 commit ea16df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ea16df3

Please sign in to comment.