Skip to content

Commit

Permalink
add link for tangible demo and few adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
tnga committed Aug 2, 2016
1 parent aa91af6 commit 4a76fe1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -39,11 +39,11 @@ have fun ! *(components are loaded with their dependencies)*
```js
bower.import('ijs') ;
bower.import('vue') ;
//with callback
// with callback
bower.import('Materialize', function (err) {

if (err.occured) {
//you can know if occured error is from bowerder or browser loading process ;)
// you can know if occured error is from bowerder or browser loading process ;)
console.error('Oops it seems like `Materialize` wasn\'t fully loaded by:'+ err.from) ;
return null; // interruption
}
Expand Down Expand Up @@ -122,6 +122,8 @@ bower.ready( function (err) {
});
```

Take a look at this [codepen](http://codepen.io/tnga/pen/OXwjao) for tangible demo !

#### how it work ?

The recommended way to use boweder to import packages, is by providing a local registry for packages installed via bower.
Expand All @@ -132,7 +134,7 @@ $ bowerder
```
it's done, all your installed packages's configurations will be available on the browser through bowerder and will be use for importation process.

How about the size of that registry ? Not much, average is `~[15-20]kb` or `~[3-8]kb gzipped` for 100 packages.
*How about the size of that registry ?* Not much, average is `~[15-20]kb` or `~[3-8]kb gzipped` for 100 packages.

To avoid to run that command each time you make a bower operation (install, update, ...), just run the following command for automation:
```sh
Expand Down

0 comments on commit 4a76fe1

Please sign in to comment.