From 549422ea63c7143cbb48402e81add8f3704c61a2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 17 May 2018 13:50:28 -0400 Subject: [PATCH] BWCLI_ENV --- src/services/nodePlatformUtils.service.ts | 2 +- webpack.config.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/nodePlatformUtils.service.ts b/src/services/nodePlatformUtils.service.ts index 33ab211fc4e..7374fcd9ef7 100644 --- a/src/services/nodePlatformUtils.service.ts +++ b/src/services/nodePlatformUtils.service.ts @@ -107,7 +107,7 @@ export class NodePlatformUtilsService implements PlatformUtilsService { } isDev(): boolean { - return process.env.ENV === 'development'; + return process.env.BWCLI_ENV === 'development'; } copyToClipboard(text: string, options?: any): void { diff --git a/webpack.config.js b/webpack.config.js index 7c05a48ee4c..d54bf76e74f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -36,8 +36,7 @@ const plugins = [ { from: './src/locales', to: 'locales' }, ]), new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify(ENV), - 'process.env.DEBUG': JSON.stringify(process.env.DEBUG), + 'process.env.BWCLI_ENV': JSON.stringify(ENV), }), new webpack.BannerPlugin({ banner: '#!/usr/bin/env node',