1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

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 { isDev(): boolean {
return process.env.ENV === 'development'; return process.env.BWCLI_ENV === 'development';
} }
copyToClipboard(text: string, options?: any): void { copyToClipboard(text: string, options?: any): void {

View File

@@ -36,8 +36,7 @@ const plugins = [
{ from: './src/locales', to: 'locales' }, { from: './src/locales', to: 'locales' },
]), ]),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(ENV), 'process.env.BWCLI_ENV': JSON.stringify(ENV),
'process.env.DEBUG': JSON.stringify(process.env.DEBUG),
}), }),
new webpack.BannerPlugin({ new webpack.BannerPlugin({
banner: '#!/usr/bin/env node', banner: '#!/usr/bin/env node',