1.3.8 • Published 7 years ago

bundle-html-scripts v1.3.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

bundle-html-scripts

Bundle and compress all scripts from any local or remote server's html file

As command line argument

node /path/to/bundle-html-scripts.js http://example.com/file.html

In code

require('bundle-html-scripts')('http://example.com/file.html')

Both commands above will create a file ./bundle.js on success.
There should be no problem parsing files with scripts inside comments, multiline included.
On failure keep trying... after 10+ attempts open an issue including the link.

Usage

Two parameters may be passed to the script, skip and verbose, an array of scripts to skip, and a boolean.
For example to skip compiling bundle.js and bar.js you can use
node ./bundle-html-scripts.js http://example.com/file.html "['bundle.js','bar.js']"
Or to print verbose information node ./bundle-html-scripts.js http://example.com/file.html "[]" true

Instalation

npm install bundle-html-scripts || npm install -g bundle-html-scripts
|| git clone https://github.com/ileathan/bundle-html-scripts && cd bundle-html-scripts && npm install

Dependencies

1.) request

2.) uglify-es

1.3.8

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago