mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 18:36:14 +03:00
fix: application version getter (#222)
This commit is contained in:
parent
c460e29d95
commit
6535ac5626
3 changed files with 445 additions and 231 deletions
668
package-lock.json
generated
668
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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()
|
||||
},
|
||||
|
|
|
@ -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']
|
||||
})
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue