Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const renderHtml = async page => {
const { html, css, ids } = renderStatic(_ =>
renderToStaticMarkup(React.createElement(page))
)
const normalize = await fs.readFile(
path.join(
__dirname,
'..',
'node_modules',
'@pluralsight',
'ps-design-system-normalize',
'dist',
'index.css'
),
{ encoding: 'utf8' }
)
const pageCss = `
body { background: ${core.colors.gray06}; }
`
const template = `