html-inlinify
Embed local assets in an HTML document with browserify.
Installation
npm install html-inlinify
Usage
This browserify transform statically evaluates inline-html expressions in order to embed local assets referenced in an HTML document and bundle the results.
Assuming we have the following index.js
:
var inlineHtml = ; ;
We can use browserify with the addition of this transform:
browserify -t hmtl-inlinify index.js > bundle.js
To create the following bundle.js
:
Promise;