diff options
author | Tiger Oakes <contact@tigeroakes.com> | 2020-09-02 22:02:14 -0700 |
---|---|---|
committer | Tiger Oakes <contact@tigeroakes.com> | 2020-09-02 22:02:14 -0700 |
commit | f70fc3ecaee1bded5d699728ab50aada9982b198 (patch) | |
tree | af0f4cdfa5a318e269fc879913c6c40198b0be1d /vue.config.js | |
parent | 83665e4f48e8db29d74a2e84b8befb6076c08665 (diff) | |
download | homer-f70fc3ecaee1bded5d699728ab50aada9982b198.tar.gz homer-f70fc3ecaee1bded5d699728ab50aada9982b198.tar.zst homer-f70fc3ecaee1bded5d699728ab50aada9982b198.zip |
Reduce number of PWA icons, fix paths
Diffstat (limited to 'vue.config.js')
-rw-r--r-- | vue.config.js | 114 |
1 files changed, 38 insertions, 76 deletions
diff --git a/vue.config.js b/vue.config.js index abee374..de31367 100644 --- a/vue.config.js +++ b/vue.config.js | |||
@@ -1,103 +1,65 @@ | |||
1 | module.exports = { | 1 | module.exports = { |
2 | chainWebpack: (config) => { | 2 | chainWebpack: (config) => { |
3 | config.module | 3 | config.module |
4 | .rule("yaml") | 4 | .rule('yaml') |
5 | .test(/\.ya?ml$/) | 5 | .test(/\.ya?ml$/) |
6 | .use("raw-loader") | 6 | .use('raw-loader') |
7 | .loader("raw-loader") | 7 | .loader('raw-loader') |
8 | .end(); | 8 | .end(); |
9 | }, | 9 | }, |
10 | publicPath: "", | 10 | publicPath: '', |
11 | pwa: { | 11 | pwa: { |
12 | manifestPath: "assets/manifest.json", | 12 | manifestPath: 'assets/manifest.json', |
13 | manifestOptions: { | 13 | manifestOptions: { |
14 | start_url: "../", | 14 | start_url: '../', |
15 | }, | 15 | }, |
16 | appleMobileWebAppStatusBarStyle: "black", | 16 | appleMobileWebAppStatusBarStyle: 'black', |
17 | appleMobileWebAppCapable: "yes", | 17 | appleMobileWebAppCapable: 'yes', |
18 | name: "Homer Dashboard", | 18 | name: 'Homer Dashboard', |
19 | short_name: "Homer", | 19 | short_name: 'Homer', |
20 | theme_color: "#3367D6", | 20 | theme_color: '#3367D6', |
21 | icons: [ | 21 | icons: [ |
22 | { | 22 | { |
23 | src: "./assets/icons/android-chrome-192x192.png", | 23 | src: '../assets/icons/favicon-16x16.png', |
24 | sizes: "192x192", | 24 | sizes: '16x16', |
25 | type: "image/png", | 25 | type: 'image/png', |
26 | }, | 26 | }, |
27 | { | 27 | { |
28 | src: "./assets/icons/android-chrome-512x512.png", | 28 | src: '../assets/icons/favicon-32x32.png', |
29 | sizes: "512x512", | 29 | sizes: '32x32', |
30 | type: "image/png", | 30 | type: 'image/png', |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | src: "./assets/icons/android-chrome-maskable-192x192.png", | 33 | src: '../assets/icons/icon-any.png', |
34 | sizes: "192x192", | 34 | sizes: '512x512', |
35 | type: "image/png", | 35 | type: 'image/png', |
36 | purpose: "maskable", | 36 | purpose: 'any', |
37 | }, | 37 | }, |
38 | { | 38 | { |
39 | src: "./assets/icons/android-chrome-maskable-512x512.png", | 39 | src: '../assets/icons/icon-any.svg', |
40 | sizes: "512x512", | 40 | sizes: 'any', |
41 | type: "image/png", | 41 | type: 'image/svg+xml', |
42 | purpose: "maskable", | 42 | purpose: 'any', |
43 | }, | 43 | }, |
44 | { | 44 | { |
45 | src: "./assets/icons/apple-touch-icon-60x60.png", | 45 | src: '../assets/icons/icon-maskable.png', |
46 | sizes: "60x60", | 46 | sizes: '512x512', |
47 | type: "image/png", | 47 | type: 'image/png', |
48 | purpose: 'maskable', | ||
48 | }, | 49 | }, |
49 | { | 50 | { |
50 | src: "./assets/icons/apple-touch-icon-76x76.png", | 51 | src: '../assets/icons/safari-pinned-tab.svg', |
51 | sizes: "76x76", | 52 | sizes: 'any', |
52 | type: "image/png", | 53 | type: 'image/svg+xml', |
53 | }, | 54 | purpose: 'monochrome', |
54 | { | ||
55 | src: "./assets/icons/apple-touch-icon-120x120.png", | ||
56 | sizes: "120x120", | ||
57 | type: "image/png", | ||
58 | }, | ||
59 | { | ||
60 | src: "./assets/icons/apple-touch-icon-152x152.png", | ||
61 | sizes: "152x152", | ||
62 | type: "image/png", | ||
63 | }, | ||
64 | { | ||
65 | src: "./assets/icons/apple-touch-icon-180x180.png", | ||
66 | sizes: "180x180", | ||
67 | type: "image/png", | ||
68 | }, | ||
69 | { | ||
70 | src: "./assets/icons/apple-touch-icon.png", | ||
71 | sizes: "180x180", | ||
72 | type: "image/png", | ||
73 | }, | ||
74 | { | ||
75 | src: "./assets/icons/favicon-16x16.png", | ||
76 | sizes: "16x16", | ||
77 | type: "image/png", | ||
78 | }, | ||
79 | { | ||
80 | src: "./assets/icons/favicon-32x32.png", | ||
81 | sizes: "32x32", | ||
82 | type: "image/png", | ||
83 | }, | ||
84 | { | ||
85 | src: "./assets/icons/msapplication-icon-144x144.png", | ||
86 | sizes: "144x144", | ||
87 | type: "image/png", | ||
88 | }, | ||
89 | { | ||
90 | src: "./assets/icons/mstile-150x150.png", | ||
91 | sizes: "150x150", | ||
92 | type: "image/png", | ||
93 | }, | 55 | }, |
94 | ], | 56 | ], |
95 | iconPaths: { | 57 | iconPaths: { |
96 | favicon32: "assets/icons/favicon-32x32.png", | 58 | favicon32: 'assets/icons/favicon-32x32.png', |
97 | favicon16: "assets/icons/favicon-16x16.png", | 59 | favicon16: 'assets/icons/favicon-16x16.png', |
98 | appleTouchIcon: "assets/icons/apple-touch-icon-152x152.png", | 60 | appleTouchIcon: 'assets/icons/icon-maskable.png', |
99 | maskIcon: "assets/icons/safari-pinned-tab.svg", | 61 | maskIcon: 'assets/icons/safari-pinned-tab.svg', |
100 | msTileImage: "assets/icons/msapplication-icon-144x144.png", | 62 | msTileImage: 'assets/icons/icon-any.png', |
101 | }, | 63 | }, |
102 | }, | 64 | }, |
103 | }; | 65 | }; |