Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createHtmlDocument(message) {
const body = anser.ansiToHtml(anser.escapeForHtml(message), { use_classes: true }); // eslint-disable-line camelcase
// CSS styles based on https://github.com/glenjamin/webpack-hot-middleware/blob/master/client-overlay.js#L5 with some slight changes
return `
<title>webpack-isomorphic-dev-middleware error</title>
<style>
body {
background: #262626;
color: #e6e6e6;
line-height: 1.2;
font-family: Menlo, Consolas, monospace;
font-size: 13px;
white-space: pre;
margin: 10px;</style>