v0.4.0
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 })