BWCLI_ENV

This commit is contained in:
Kyle Spearrin 2018-05-17 13:50:28 -04:00
parent c62c28677a
commit 549422ea63
2 changed files with 2 additions and 3 deletions

View File

@ -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 {

View File

@ -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',