mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
BWCLI_ENV
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user