Skip to content

Commit

Permalink
feat: display the version number in the PAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtunSubasi committed May 9, 2020
1 parent 1b2b398 commit bbeb1ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/PaqPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
<a href="https://www.quora.com/Is-a-macaroon-a-cookie">In einer Diskussion in Quora</a> gibt es unterschiedliche Meinungen dazu.
Was ist deine Meinung?
</p>

<h2>Was für eine Version sehe ich gerade?</h2>
<p>
{{ version }}
</p>
</div>

<TheNavigationBar/>
Expand All @@ -66,6 +71,11 @@ export default {
name: 'Paq',
components: {
TheNavigationBar
},
data: function () {
return {
version: process.env.VUE_APP_VERSION
}
}
}
</script>
Expand Down
14 changes: 14 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var webpack = require('webpack');
module.exports = {
configureWebpack: config => {
return {
plugins: [
new webpack.DefinePlugin({
'process.env': {
VUE_APP_VERSION: JSON.stringify(require('./package.json').version)
}
})
]
}
},
}

0 comments on commit bbeb1ed

Please sign in to comment.