@rola/plugin-document
Quick access to the document creation process in rola.
See plugin docs for more info.
Install
npm i @rola/plugin-document --save
Usage
Add the plugin to the plugins
array in your rola.plugins.js
:
import document from '@rola/plugin-document'
export default [
document(({ context, ...customProps }) => {
return {
head: [ '<link />' ],
body: [ '<script />' ]
}
})
]
License
MIT License © Eric Bailey