diff --git a/docs/docs/install.md b/docs/docs/install.md index 443c39da8..4ede2ae8a 100644 --- a/docs/docs/install.md +++ b/docs/docs/install.md @@ -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 ```