mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
BWCLI_ENV
This commit is contained in:
parent
c62c28677a
commit
549422ea63
@ -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 {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user