0.2.0 • Published 9 years ago

html-inlinify v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

html-inlinify

Embed local assets in an HTML document with browserify.

npm version npm license Travis David npm downloads

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 = require('inline-html');

inlineHtml('./index.html').then(function (html) {
  // ...
});

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.resolve('... html string with assets embedded ...').then(function (html) {
  // ...
});
0.2.0

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago