Skip to content

Commit

Permalink
docs(zh): change line to lines in plugin-dev.md (#5671)
Browse files Browse the repository at this point in the history
Co-authored-by: zhouxinyong[周新勇] <zhouxinyong@xiaomi.com>
  • Loading branch information
zhouxinyong and zhouxinyong[周新勇] committed Jul 11, 2020
1 parent d1a4248 commit e5cf1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/dev-guide/plugin-dev.md
Expand Up @@ -288,7 +288,7 @@ module.exports.hooks = (api) => {
const renderIndex = lines.findIndex(line => line.match(/render/))
lines[renderIndex] += `${EOL} router,`
fs.writeFileSync(api.entryFile, line.join(EOL), { encoding: 'utf-8' })
fs.writeFileSync(api.entryFile, lines.join(EOL), { encoding: 'utf-8' })
})
}
```
Expand Down

0 comments on commit e5cf1a2

Please sign in to comment.