-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
43 lines (43 loc) · 1.1 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
// vue.config.js
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/game/welcome2019/pc/'
: '/',
// publicPath: './',
transpileDependencies: [
'vue-echarts',
'resize-detector',
],
configureWebpack: (config) => {
// eslint-disable-next-line no-param-reassign
config.entry.app = ['babel-polyfill', './src/main.js'];
},
pwa: {
name: '邮你造未来 | 2019 迎新网',
themeColor: '#b0ceff',
msTileColor: '#b0ceff',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: '#b0ceff',
workboxPluginMode: 'GenerateSW',
workboxOptions: {
include: [/\.html$/, /\.js$/, /\.(?:png|gif|jpg|jpeg|svg)$/, /\.css$/, /\.(?:eot|svg|ttf|woff|woff2)$/],
},
iconPaths: {
favicon32: 'img/icons/logo192x192.png',
favicon16: 'img/icons/logo192x192.png',
},
},
devServer: {
proxy: {
'/api': {
target: 'https://wx.idsbllp.cn/234/seniorhelpme/question',
ws: true,
changeOrigin: true,
secure: false,
pathRewrite: {
'^/api': '',
},
},
},
},
}