Skip to content

Commit

Permalink
docs: how to use with Docusaurus (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly authored Oct 16, 2022
1 parent 431503a commit b2d4b81
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ export default {
return config
},
}

// Docusaurus plugin - to be provided to the plugins option of docusaurus.config.js
// n.b. you'll likely need to require fontaine rather than importing it
const fontaine = require('fontaine')

function fontainePlugin(_context, _options) {
return {
name: 'fontaine-plugin',
configureWebpack(_config, _isServer) {
return {
plugins: [
fontaine.FontaineTransform.webpack(options),
],
};
},
};
}
```

> **Note**
Expand Down

0 comments on commit b2d4b81

Please sign in to comment.