mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-31 13:54:34 +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() {
|
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.checkDeviceDarkTheme()
|
||||||
this.checkAuthenticated()
|
this.checkAuthenticated()
|
||||||
},
|
},
|
||||||
|
|
|
@ -100,10 +100,8 @@ module.exports = {
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.EnvironmentPlugin({
|
||||||
APPLICATION_VERSION: JSON.stringify(
|
APPLICATION_VERSION: process.env['npm_package_version']
|
||||||
require('./package.json').version
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue