-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
42 lines (40 loc) · 973 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
module.exports = {
publicPath: '/',
devServer: {
// proxy: {
// '/survival.js': {
// target: 'https://cdn.splitbee.io',
// changeOrigin: true,
// pathRewrite: {
// '/survival.js': '/sb.js',
// },
// },
// '^/survival/': {
// target: 'https://hive.splitbee.io',
// changeOrigin: true,
// pathRewrite: {
// '^/survival/': '/',
// },
// },
// },
},
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('html-loader')
.loader('html-loader');
},
pwa: {
name: 'D&D & Me',
themeColor: '#991B1B',
msTileColor: '#000000',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
// swSrc is required in InjectManifest mode.
swSrc: 'service-worker.js',
// ...other Workbox options...
exclude: [/\.map$/, /_redirects/],
},
},
};