Reduce number of PWA icons, fix paths
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 24 KiB |
BIN
public/assets/icons/icon-any.png
Normal file
After Width: | Height: | Size: 75 KiB |
1
public/assets/icons/icon-any.svg
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
public/assets/icons/icon-maskable.png
Normal file
After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB |
@ -1,79 +1,42 @@
|
|||||||
{
|
{
|
||||||
"name": "Dashboard",
|
"name": "Homer Dashboard",
|
||||||
"short_name": "homer",
|
"short_name": "Homer",
|
||||||
"theme_color": "#3367D6",
|
"theme_color": "#3367D6",
|
||||||
|
"start_url": "../",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "./assets/icons/android-chrome-192x192.png",
|
"src": "../assets/icons/favicon-16x16.png",
|
||||||
"sizes": "192x192",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/android-chrome-512x512.png",
|
|
||||||
"sizes": "512x512",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/android-chrome-maskable-192x192.png",
|
|
||||||
"sizes": "192x192",
|
|
||||||
"type": "image/png",
|
|
||||||
"purpose": "maskable"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/android-chrome-maskable-512x512.png",
|
|
||||||
"sizes": "512x512",
|
|
||||||
"type": "image/png",
|
|
||||||
"purpose": "maskable"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon-60x60.png",
|
|
||||||
"sizes": "60x60",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon-76x76.png",
|
|
||||||
"sizes": "76x76",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon-120x120.png",
|
|
||||||
"sizes": "120x120",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon-152x152.png",
|
|
||||||
"sizes": "152x152",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon-180x180.png",
|
|
||||||
"sizes": "180x180",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/apple-touch-icon.png",
|
|
||||||
"sizes": "180x180",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "./assets/icons/favicon-16x16.png",
|
|
||||||
"sizes": "16x16",
|
"sizes": "16x16",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "./assets/icons/favicon-32x32.png",
|
"src": "../assets/icons/favicon-32x32.png",
|
||||||
"sizes": "32x32",
|
"sizes": "32x32",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "./assets/icons/msapplication-icon-144x144.png",
|
"src": "../assets/icons/icon-any.png",
|
||||||
"sizes": "144x144",
|
"sizes": "512x512",
|
||||||
"type": "image/png"
|
"type": "image/png",
|
||||||
|
"purpose": "any"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "./assets/icons/mstile-150x150.png",
|
"src": "../assets/icons/icon-any.svg",
|
||||||
"sizes": "150x150",
|
"sizes": "any",
|
||||||
"type": "image/png"
|
"type": "image/svg+xml",
|
||||||
|
"purpose": "any"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "../assets/icons/icon-maskable.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "maskable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "../assets/icons/safari-pinned-tab.svg",
|
||||||
|
"sizes": "any",
|
||||||
|
"type": "image/svg+xml",
|
||||||
|
"purpose": "monochrome"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
114
vue.config.js
@ -1,103 +1,65 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
chainWebpack: (config) => {
|
chainWebpack: (config) => {
|
||||||
config.module
|
config.module
|
||||||
.rule("yaml")
|
.rule('yaml')
|
||||||
.test(/\.ya?ml$/)
|
.test(/\.ya?ml$/)
|
||||||
.use("raw-loader")
|
.use('raw-loader')
|
||||||
.loader("raw-loader")
|
.loader('raw-loader')
|
||||||
.end();
|
.end();
|
||||||
},
|
},
|
||||||
publicPath: "",
|
publicPath: '',
|
||||||
pwa: {
|
pwa: {
|
||||||
manifestPath: "assets/manifest.json",
|
manifestPath: 'assets/manifest.json',
|
||||||
manifestOptions: {
|
manifestOptions: {
|
||||||
start_url: "../",
|
start_url: '../',
|
||||||
},
|
},
|
||||||
appleMobileWebAppStatusBarStyle: "black",
|
appleMobileWebAppStatusBarStyle: 'black',
|
||||||
appleMobileWebAppCapable: "yes",
|
appleMobileWebAppCapable: 'yes',
|
||||||
name: "Homer Dashboard",
|
name: 'Homer Dashboard',
|
||||||
short_name: "Homer",
|
short_name: 'Homer',
|
||||||
theme_color: "#3367D6",
|
theme_color: '#3367D6',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: "./assets/icons/android-chrome-192x192.png",
|
src: '../assets/icons/favicon-16x16.png',
|
||||||
sizes: "192x192",
|
sizes: '16x16',
|
||||||
type: "image/png",
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "./assets/icons/android-chrome-512x512.png",
|
src: '../assets/icons/favicon-32x32.png',
|
||||||
sizes: "512x512",
|
sizes: '32x32',
|
||||||
type: "image/png",
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "./assets/icons/android-chrome-maskable-192x192.png",
|
src: '../assets/icons/icon-any.png',
|
||||||
sizes: "192x192",
|
sizes: '512x512',
|
||||||
type: "image/png",
|
type: 'image/png',
|
||||||
purpose: "maskable",
|
purpose: 'any',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "./assets/icons/android-chrome-maskable-512x512.png",
|
src: '../assets/icons/icon-any.svg',
|
||||||
sizes: "512x512",
|
sizes: 'any',
|
||||||
type: "image/png",
|
type: 'image/svg+xml',
|
||||||
purpose: "maskable",
|
purpose: 'any',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "./assets/icons/apple-touch-icon-60x60.png",
|
src: '../assets/icons/icon-maskable.png',
|
||||||
sizes: "60x60",
|
sizes: '512x512',
|
||||||
type: "image/png",
|
type: 'image/png',
|
||||||
|
purpose: 'maskable',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "./assets/icons/apple-touch-icon-76x76.png",
|
src: '../assets/icons/safari-pinned-tab.svg',
|
||||||
sizes: "76x76",
|
sizes: 'any',
|
||||||
type: "image/png",
|
type: 'image/svg+xml',
|
||||||
},
|
purpose: 'monochrome',
|
||||||
{
|
|
||||||
src: "./assets/icons/apple-touch-icon-120x120.png",
|
|
||||||
sizes: "120x120",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/apple-touch-icon-152x152.png",
|
|
||||||
sizes: "152x152",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/apple-touch-icon-180x180.png",
|
|
||||||
sizes: "180x180",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/apple-touch-icon.png",
|
|
||||||
sizes: "180x180",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/favicon-16x16.png",
|
|
||||||
sizes: "16x16",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/favicon-32x32.png",
|
|
||||||
sizes: "32x32",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/msapplication-icon-144x144.png",
|
|
||||||
sizes: "144x144",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "./assets/icons/mstile-150x150.png",
|
|
||||||
sizes: "150x150",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
iconPaths: {
|
iconPaths: {
|
||||||
favicon32: "assets/icons/favicon-32x32.png",
|
favicon32: 'assets/icons/favicon-32x32.png',
|
||||||
favicon16: "assets/icons/favicon-16x16.png",
|
favicon16: 'assets/icons/favicon-16x16.png',
|
||||||
appleTouchIcon: "assets/icons/apple-touch-icon-152x152.png",
|
appleTouchIcon: 'assets/icons/icon-maskable.png',
|
||||||
maskIcon: "assets/icons/safari-pinned-tab.svg",
|
maskIcon: 'assets/icons/safari-pinned-tab.svg',
|
||||||
msTileImage: "assets/icons/msapplication-icon-144x144.png",
|
msTileImage: 'assets/icons/icon-any.png',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|