Change debugging option for vscode users (#1005)

This commit is contained in:
HenryNguyen5 2018-02-06 16:33:58 -05:00 committed by Daniel Ternyak
parent 5272bdacd5
commit 82d7156295
1 changed files with 2 additions and 2 deletions

View File

@ -281,8 +281,8 @@ module.exports = function(opts = {}) {
// ====================
let devtool = false;
if (!options.isProduction) {
if (process.env.SLOW_BUILD_SPEED) {
devtool = 'source-map';
if (process.env.VSCODE_DEBUG) {
devtool = 'cheap-module-source-map';
} else {
devtool = 'cheap-module-eval-source-map';
}