Skip to content

v0.4.0

Compare
Choose a tag to compare
@andywer andywer released this 26 Aug 08:01
· 52 commits to master since this release

New features

  • Make it easy to customize <head> content (#23)
  • Submission of local files to be used on snapshotting (#23)

Example

Here is some React sample code showing the new features:

import createReactShutter, { addFile } from '@shutter/react'
import * as path from 'path'

const files = await Promise.all([
  addFile(path.join(__dirname, 'styles/base.css'), '/base.css')
])
const head = (
  <>
    <link href='/base.css' rel='stylesheet' />
  </>
)
const shutter = createReactShutter(__dirname, { files, head })