babel-include-html

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i babel-include-html

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

4.09 kB

Total Files

8

Last publish

Collaborators

  • avastava