weboot
v0.0.4
Published
Quickly and easily make a web application bootstrap program
Downloads
3
Readme
Weboot
Quickly and easily make a web application bootstrap program!
Installation
$ npm install weboot -g
# or
$ yarn global ad weboot
Usage
$ weboot --help
Boot script usage (if you want to do ...)
$ weboot path/to/index.html -b boot.js
boot.js
// Invoked before resources start load
onReady(function(callback) {
// ...
callback(); // <-- required
});
// Invoked when the resource is loading
onProgress(function(percentage, resource) {
// ...
});
// Invoked when the resource is load failed
onError(function(error) {
// ...
});
// Invoked after all resources loaded
onDone(function() {
// ...
});
boot.css [option]
/* custom style code */
Example
License
MIT License.
Enjoy it