fix: application version getter (#222)

This commit is contained in:
Jef LeCompte 2021-04-18 10:53:29 -04:00 committed by GitHub
parent c460e29d95
commit 6535ac5626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 445 additions and 231 deletions

668
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -34,7 +34,7 @@ export default {
}
},
created() {
this.$store.commit('SET_APP_VERSION', process.env['npm_package_version'])
this.$store.commit('SET_APP_VERSION', process.env['APPLICATION_VERSION'])
this.checkDeviceDarkTheme()
this.checkAuthenticated()
},

View file

@ -100,10 +100,8 @@ module.exports = {
configureWebpack: {
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
APPLICATION_VERSION: JSON.stringify(
require('./package.json').version
)
new webpack.EnvironmentPlugin({
APPLICATION_VERSION: process.env['npm_package_version']
})
]
},