* Include tip about computed env vars
I'm personally using this frivolously in my own footer
```
// vue.config.js
const revision = require('child_process').execSync('git rev-parse HEAD').toString().trim()
const pjson = require('./package.json')
process.env.VUE_APP_COMMIT = `"${revision}"`
process.env.VUE_APP_VERSION = `"${pjson.version}"`
module.exports = {}
```
```
<template>
<footer>
<span>v{{ version }} ({{ commit }})</span>
</footer>
</template>
<script>
export default {
data: function () {
return {
version: process.env.VUE_APP_VERSION,
commit: process.env.VUE_APP_COMMIT
}
}
}
```
# Validation
- I'm using this.
- The inline require doesn't cause lint issues on vue-cli v3 config files. I did a full builds to check.
* tip format match
* tip format
* tip, format
* markdown formatting conflicts with es6 templates
Also, quotes, optional now. interesting. I tried it.
* remove template stray
* filenames are not proper english grammar, yet