-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
47 lines (45 loc) · 1.12 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
const webpack = require('webpack');
const config = require('./compile-config')
// const isProd = process.env.NODE_ENV === "production";
process.env.VUE_APP_GOOGLE_API_KEY = config.googleApiOptions.apiKey
module.exports = {
configureWebpack: {
// Set up all the aliases we use in our app.
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 6
})
]
},
pwa: {
name: 'JBs Dashboard',
themeColor: '#172b4d',
msTileColor: '#172b4d',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: '#172b4d'
},
css: {
// Enable CSS source maps.
sourceMap: process.env.NODE_ENV !== 'production'
},
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: 'net.battlemoose.jbs-dashboard',
publish: [
{
provider: 'github',
repo: 'jbs-dashboard',
owner: 'battlemoose'
}
],
// win: {
// target: ['nsis', 'zip'],
// },
},
// nodeIntegration: true
// externals: ['electron', 'fs'],
preload: 'src/preload.js',
}
}
};