-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
36 lines (33 loc) · 930 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
let webpack = require('webpack')
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const tbPackageJson = fs.readFileSync('./node_modules/@narrative.io/tackle-box/package.json')
const appVersion = JSON.parse(packageJson).version || 0
const tbVersion = JSON.parse(tbPackageJson).version || 0
const {gitDescribeSync} = require('git-describe');
module.exports = {
transpileDependencies: [
"vuetify"
],
lintOnSave: true,
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
'process.env': {
APP_VERSION: '"' + appVersion + '"',
TACKLEBOX_VERSION: '"' + tbVersion + '"',
APP_GIT_HASH: '"' + gitDescribeSync(__dirname, {
longSemver: true,
dirtySemver: false
}).hash.replace('dirty', '') + '"'
}
})
],
output: {
globalObject: "this"
}
},
devServer: {
port: 9999
}
}