Skip to content

Commit

Permalink
docs: update custom-templates.mdx (gregberge#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
mc100s authored Jun 26, 2020
1 parent e9c9d2f commit 6d605d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/src/pages/docs/custom-templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ When you use the CLI with `--out-dir` option, an index file is automatically gen
The customization is the same, a file that exports a function:

```js
const path = require('path')

function defaultIndexTemplate(filePaths) {
const exportEntries = filePaths.map(filePath => {
const basename = path.basename(filePath, path.extname(filePath))
Expand Down

0 comments on commit 6d605d6

Please sign in to comment.