1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

Ensure Angular is running as production (#1093)

This commit is contained in:
Oscar Hinton
2021-07-23 20:03:14 +02:00
committed by GitHub
parent d31150c7a1
commit 35d6a28c94
7 changed files with 9 additions and 8 deletions

View File

@@ -135,6 +135,7 @@ const plugins = [
new webpack.DefinePlugin({
'process.env': {
'ENV': JSON.stringify(ENV),
'NODE_ENV': NODE_ENV === 'production' ? 'production' : 'development',
'SELF_HOST': JSON.stringify(process.env.SELF_HOST === 'true' ? true : false),
'APPLICATION_VERSION': JSON.stringify(pjson.version),
'CACHE_TAG': JSON.stringify(Math.random().toString(36).substring(7)),