forked from budgetzero/budgetzero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
36 lines (33 loc) · 817 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
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0
const webpack = require('webpack')
module.exports = {
pluginOptions: {
electronBuilder: {
builderOptions: {
publish: ['github']
},
//Necessary for electron to render properly
chainWebpackRendererProcess(config) {
config.plugin('define').tap(args => {
delete args[0]['process.env'].BASE_URL
return args
})
}
}
},
transpileDependencies: ['vuetify'],
configureWebpack: {
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
PACKAGE_VERSION: '"' + version + '"'
}
})
]
},
runtimeCompiler: true,
lintOnSave: false
}