-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
69 lines (65 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
// 遠端開發 api proxy
devServer: {
proxy: {
'/api': {
target: 'https://api.imsystem.site', // target host
secure: false,
changeOrigin: true,
pathRewrite: {
'^/api/': '/'
},
onProxyReq: (request) => {
request.setHeader("origin", "https://imsystem.site");
},
},
}
},
publicPath: '/',
productionSourceMap: false,
pwa: {
name: 'iM',
shortName: 'iM',
themeColor: '#3d403f',
manifestOptions: {
background_color: '#3d403f',
orientation: "landscape",
display: "fullscreen"
},
msTileColor: '#3d403f',
//assetsVersion: '0.020173',
/*
appleMobileWebAppCapable: 'yes',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
// swSrc is required in InjectManifest mode.
swSrc: 'public/service-worker.js',
importWorkboxFrom: 'disabled',
importScripts:"https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"
//importScripts: 'https://storage.googleapis.com/workbox-cdn/releases/6.1.1/workbox-sw.js'
// ...other Workbox options...
},*/
},
css: {
// 是否使用css分離外掛 ExtractTextPlugin
//extract: true,
// 開啟 CSS source maps?
sourceMap: false,
// css預設器配置項
loaderOptions: {},
// 啟用 CSS modules for all css / pre-processor files.
requireModuleExtension: true
},
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true,
enableLegacy: false,
runtimeOnly: false,
compositionOnly: false,
fullInstall: true
}
}
}