Build tool for creating a drop-in js from a more complex html import dependencies tree
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json
singlejs

README.md

Single JS

A simple tool to build multiple components as a single js file.

How to use it

Example how to build brick (assuming brick is in ../brick):

./singlejs -f ../brick/dist/brick.html > output.js

to get a minified js:

./singlejs -m -f ../brick/dist/brick.html > output.js

to get the maximum compression available (it removes spaces inside templates):

./singlejs -a -f ../brick/dist/brick.html > output.js