Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
docs(plugin-named-chunks): fix usage example (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liwoj authored and meteorlxy committed Jan 17, 2020
1 parent ba9892e commit aa361f0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/docs/src/en/plugins/named-chunks.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ npm install vuepress-plugin-named-chunks
// .vuepress/config.js
module.exports = {
plugins: [
'named-chunks',
{
pageChunkName: page => 'page' + page.key.slice(1),
layoutChunkName: layout => 'layout-' + layout.componentName,
},
[
'named-chunks',
{
pageChunkName: page => 'page' + page.key.slice(1),
layoutChunkName: layout => 'layout-' + layout.componentName,
}
],
],
}
```
Expand Down

0 comments on commit aa361f0

Please sign in to comment.