@rola/plugin-document

0.10.5 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @rola/plugin-document

Weekly Downloads

1

Version

0.10.5

License

MIT

Unpacked Size

1.23 kB

Total Files

3

Last publish

Collaborators

  • estrattonbailey