forked from gyrate/study-arcgis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
62 lines (50 loc) · 1.11 KB
/
vue.config.js
File metadata and controls
62 lines (50 loc) · 1.11 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const path = require('path')
function resolve (dir) {
return path.join(__dirname, dir)
}
// 定义页面title
const name = 'study-arcgis'
module.exports = {
// 基本路径
publicPath: process.env.NODE_ENV === 'production' ? '/study-arcgis/' : '',
lintOnSave: false,
outputDir: 'docs',
productionSourceMap: false,
devServer: {
port: 9090,
proxy: {
'/mock': {
target: `http://localhost:3000`,
changeOrigin: true,
pathRewrite: {
'^/mock': ''
}
}
}
},
configureWebpack: {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
},
css: {
},
pages: {
index: {
// page 的入口
entry: 'src/main.js',
// 模板来源
template: 'public/index.html',
// 在 dist/index.html 的输出
filename: 'index.html',
// 当使用 title 选项时,
title: 'Index Page',
// 在这个页面中包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
chunks: ['chunk-vendors', 'chunk-common', 'index']
},
},
}