weboot

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i weboot

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • maolion