You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let `brbower` plugin require bower components for you when building bundles, then you can `require` them as normal node modules in application codes.
7
-
You can also provide external config, to guide `brbower` to external some bower components, which is useful when when building multiple bundles.
6
+
Let `browserify-bower` plugin require bower components for you when building bundles, then you can `require` them as normal node modules in application codes.
7
+
You can also provide external config, to guide `browserify-bower` to external some bower components, which is useful when when building multiple bundles.
8
8
9
9
10
10
# install
11
11
12
12
With [npm](https://npmjs.org) do:
13
13
14
14
```
15
-
npm install brbower
15
+
npm install browserify-bower
16
16
```
17
17
18
18
# usage
19
+
## Programmatic API
19
20
In your task runner like `gulp`, add this plugin to `browserify`:
20
21
```javascript
21
-
b.plugin('brbower', {
22
+
b.plugin('browserify-bower', {
22
23
require: ['*', 'base62/lib/base62'],
23
24
external: {
24
25
exclude: ['comp1', 'comp2']
@@ -46,12 +47,22 @@ var comp2 = require('alias2');
_**p.s. feel free to use it side by other plugins/transforms, since it's a standard [`browserify`](https://github.com/substack/node-browserify) plugin, no hack, no change to your codes.**_
0 commit comments