const md5File = require('md5-file'); const path = require('path'); const bundlePath = path.resolve('./public/bundle/bundle.js'); const bundleHash = md5File.sync(bundlePath); const shortBundleHash = bundleHash.substring(0,4); module.exports = (helmet, html, preloadedState) => { // take the html and preloadedState and return the full page return `
${helmet.title.toString()} ${helmet.meta.toString()} ${helmet.link.toString()}