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
Copy file name to clipboardExpand all lines: README.md
+9-17Lines changed: 9 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,10 @@ b.plugin('browserify-bower', {
26
26
external: {
27
27
exclude: ['comp1', 'comp2']
28
28
},
29
-
alias: ['base62/lib/base62:base62']
29
+
alias: ['base62/lib/base62:base62'], // or alias: { 'base62/lib/base62':'base62', ... }
30
+
mainfiles: { // specify the main file for packages without a bower.json
31
+
'base62':'main.js'
32
+
}
30
33
});
31
34
```
32
35
_p.s. of course, you can also configure this in node `package.json`._
@@ -67,23 +70,8 @@ In programmatic API, pls use like `b.plugin(browserifyBower.workdir(thedir), {..
67
70
In command line, pls use parameter `--workdir thedir`.
68
71
69
72
70
-
> 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.
73
+
> p.s. pls 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