turn html into beautiful js, with browserify
npm install html2js-browserifynpm install html2js-browserify
some.html
app.js
var html = require('./some.html');
console.log(html);
Then
# browserify -t html2js-browserify app.js
* minify if set to true, will minify the HTML. All other options are passed through to html-minifier.
``sh``
browserify -t [html2js-browserify --minify --collapseWhitespace] app.js