Show the version of the current build, distinguishing between

development and production builds. The layout needs to be refined, it's
still quite ugly as of now.
This commit is contained in:
Manuel Friedli 2018-08-31 22:25:53 +02:00
parent ba2d6032ea
commit 3edcbf0918
5 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
appVersion: require('../../package.json').version
};

View file

@ -3,7 +3,8 @@
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
production: false,
appVersion: `${require('../../package.json').version} (development build)`
};
/*