Skip to content

Commit

Permalink
webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed May 25, 2019
1 parent bd70eab commit 79b9115
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/docs/install.md
Expand Up @@ -39,15 +39,29 @@ $ bower install --save bluebird
$ npm install bluebird
```

Using webpack for development/debugging:

```js
var Promise = require("bluebird");
// Configure
// Configure webpack and browserify for development/debugging
Promise.config({
longStackTraces: true,
warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
})
```

Using webpack for production/performance:


```js
var Promise = require("bluebird");
// Configure webpack and browserify for production/performance
Promise.config({
longStackTraces: false,
warnings: false
})
```

##Node installation

```
Expand Down

0 comments on commit 79b9115

Please sign in to comment.