0.0.4 • Published 7 years ago

weboot v0.0.4

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

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

weboot-example

License

MIT License.


Enjoy it