Skip to content

Commit

Permalink
docs: writeFileSync path was missing api.resolve (#5804) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-schaeffer authored Aug 24, 2020
1 parent 865fdd2 commit 76bf3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev-guide/plugin-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ module.exports.hooks = (api) => {
const renderIndex = lines.findIndex(line => line.match(/render/))
lines[renderIndex] += `${EOL} router,`
fs.writeFileSync(api.entryFile, lines.join(EOL), { encoding: 'utf-8' })
fs.writeFileSync(api.resolve(api.entryFile), lines.join(EOL), { encoding: 'utf-8' })
})
}
```
Expand Down

0 comments on commit 76bf3d9

Please sign in to comment.