-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
41 lines (36 loc) · 984 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
37
38
39
40
41
const {defineConfig} = require('@vue/cli-service')
const fs = require('fs')
let https = false
let serverPort = 8080
let serverOpts = {}
if (process.env.CERT_PATH && process.env.CERT_PASSPHRASE) {
https = true
serverPort = 443
serverOpts = {
type: 'https',
options: {
pfx: fs.readFileSync(process.env.CERT_PATH),
passphrase: process.env.CERT_PASSPHRASE,
},
}
}
module.exports = defineConfig({
transpileDependencies: true,
pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
}
},
devServer: {
https,
port: serverPort,
allowedHosts: 'all',
server: serverOpts,
},
chainWebpack: config => {
config.plugin('copy').tap(options => {
options[0].patterns[0].globOptions.ignore.push('**/webapp-settings.example.json')
return options
})
}
})