Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-include-html

avastava2MIT0.1.1

Babel plugin to include HTML files as string

readme

babel-include-html

Babel plugin to include HTML files as string

//index.js
let a = include_html('./test.html');

//test.html
<div class="cont">
    <h1>Hello, world!</h1>
</div>

//output
let a = "<div class=cont><h1>Hello, world!</h1></div>";