bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
19 lines (18 loc) • 460 B
JavaScript
module.exports = function html(title, components) {
return ({ htmlWebpackPlugin }) => `
<html lang="en">
<head>
<meta charset="utf-8">
<title>${title}</title>
<script>
// Allow to use react devtools inside the examples
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
</script>
</head>
<body>
<div id="root"></div>
</body>
</html>
`;
};