Skip to content

for turning crummy HTML into beautiful Javascript, with browserify

Notifications You must be signed in to change notification settings

featurist/html2js-browserify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turn crummy HTML into beautiful Javascript npm version npm Build Status

npm install html2js-browserify

How?

some.html

<html><body><h1>dude!</h1></body></html>

app.js

var html = require('./some.html');
console.log(html);

Then

# browserify -t html2js-browserify app.js

Options

  • minify if set to true, will minify the HTML. All other options are passed through to html-minifier.

    browserify -t [html2js-browserify --minify --collapseWhitespace] app.js

We're Hiring!

Featurist provides full stack, feature driven development teams. Want to join us? Check out our career opportunities.

About

for turning crummy HTML into beautiful Javascript, with browserify

Resources

Stars

Watchers

Forks

Packages

No packages published