-
Notifications
You must be signed in to change notification settings - Fork 35
/
vue.config.js
44 lines (41 loc) · 909 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
42
43
44
'use strict'
const path = require('path'),
name = 'vue-cron-generator', // page title
port = process.env.port || process.env.npm_config_port || 8090 // dev port
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: './',
outputDir: 'dist',
lintOnSave: true,
productionSourceMap: false,
devServer: {
port: port,
open: false,
overlay: {
warnings: false,
errors: true
},
proxy: {
'/api': {
target: `http://106.14.246.234:5210`,
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
}
},
disableHostCheck: true
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
}
}