Include content of HTML files as string
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json
test.html
test.js
test_cont.js

README.md

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>";