Skip to content

whistle-plugins/whistle.combo

Repository files navigation

whistle.combo

GitHub issues GitHub license node version Build Status Test coverage

A combo plugin base on tianmajs for whistle.

A combo url is like http://i.cdn.com/??x.js,y.js,z.js. whistle.combo splits the combo url to a path array [x.js, y.js, z.js] and concats them one by one.

Usage

1. first install whistle(version of whistle must above or equal 0.12.3, check by typing w2 -V) and start whistle. Visit https://github.com/avwo/whistle to get more info about whistle usage

$ npm i -g whistle --registry=https://registry.npm.taobao.org

2. install whistle.combo

$ npm i -g whistle.combo --registry=https://registry.npm.taobao.org

3. config combo protocal

# [] means optional
# by default, delimiter is `??`, seperator is `,`
i.cdn.com combo://[delimiter:seperator@]absoluteRootDir


# sample 1
i.cdn.com combo:///Users/jiewei.ljw/work/i/test

# sample 2  delimiter:'c/=', seperator:','
g.cdn.com combo://c/=:,@/Users/jiewei.ljw/work/g/test

4. enjoy yourself.

Issues

License

MIT

About

a combo plugin for whistle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published