-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
48 lines (46 loc) · 1.24 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
const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
transpileDependencies: true,
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.tap(options => ({
...options,
compilerOptions: {
isCustomElement: tag => ['center', 'big'].includes(tag),
},
}));
},
pwa: {
name: "書蠹付梓 | 無縫閱讀",
themeColor: "#4DBA87",
msTileColor: "#000000",
manifestOptions: {
short_name: "書蠹付梓",
start_url: "./index.html",
icons: [
{
src: "./img/icons/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "./img/icons/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
description: "提供流暢、無廣告的小說/漫畫閱覽,支援各平台裝置使用,無需下載任何App。",
display: "standalone",
background_color: "#000000",
},
appleMobileWebAppCapable: "yes",
appleMobileWebAppStatusBarStyle: "black",
workboxPluginMode: 'GenerateSW',
workboxOptions: {
skipWaiting: true,
clientsClaim: true,
},
},
});