Skip to content

Commit 79b9115

Browse files
committedMay 25, 2019
webpack config
1 parent bd70eab commit 79b9115

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
 

‎docs/docs/install.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,29 @@ $ bower install --save bluebird
3939
$ npm install bluebird
4040
```
4141

42+
Using webpack for development/debugging:
43+
4244
```js
4345
var Promise = require("bluebird");
44-
// Configure
46+
// Configure webpack and browserify for development/debugging
4547
Promise.config({
4648
longStackTraces: true,
4749
warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
4850
})
4951
```
5052

53+
Using webpack for production/performance:
54+
55+
56+
```js
57+
var Promise = require("bluebird");
58+
// Configure webpack and browserify for production/performance
59+
Promise.config({
60+
longStackTraces: false,
61+
warnings: false
62+
})
63+
```
64+
5165
##Node installation
5266

5367
```

0 commit comments

Comments
 (0)
Please sign in to comment.