bundlescript

command module
v0.0.0-...-9c92624 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2014 License: MIT Imports: 9 Imported by: 0

README

bundlescript

bundlescript bundles all the JavaScript files referenced in an HTML file to a single JavaScript file, removes all script tags and adds a script tag at the end of the HTML file that references the bundled JavaScript file.

Usage

bundlescript --htdocs /path/to/your/htdocs --htmlin index.html --htmlout index-new.html --jsout /js/bundle.js

This will read the file /path/to/your/htdocs/index.html, bundle all its JavaScript sources to a single file, and write the resulting HTML and JavaScript files to /path/to/your/htdocs/index-new.html resp. /path/to/your/htdocs/js/bundle.js.

The HTML input file and output file can be the same.

License

See the file LICENSE for license information.

Author

Andreas Krennmair ak@synflood.at

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL