@rola/plugin-document

Tap into rola document creation.

Usage no npm install needed!

<script type="module">
  import rolaPluginDocument from 'https://cdn.skypack.dev/@rola/plugin-document';
</script>

README

@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