From 79b9115a8691b804ce8ee38e7dab01842331aa70 Mon Sep 17 00:00:00 2001 From: Petka Antonov Date: Sat, 25 May 2019 12:28:27 +0300 Subject: [PATCH] webpack config --- docs/docs/install.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 ```