homer/vue.config.js

66 lines
1.5 KiB
JavaScript
Raw Normal View History

module.exports = {
chainWebpack: (config) => {
config.module
2020-10-23 22:44:46 +02:00
.rule("yaml")
.test(/\.ya?ml$/)
2020-10-23 22:44:46 +02:00
.use("raw-loader")
.loader("raw-loader")
.end();
},
2020-10-23 22:44:46 +02:00
publicPath: "",
pwa: {
2020-10-23 22:44:46 +02:00
manifestPath: "assets/manifest.json",
manifestOptions: {
2020-10-23 22:44:46 +02:00
start_url: "../",
},
2020-10-23 22:44:46 +02:00
appleMobileWebAppStatusBarStyle: "black",
appleMobileWebAppCapable: "yes",
name: "Homer Dashboard",
short_name: "Homer",
theme_color: "#3367D6",
icons: [
{
2020-10-23 22:44:46 +02:00
src: "./icons/favicon-16x16.png",
sizes: "16x16",
type: "image/png",
},
{
2020-10-23 22:44:46 +02:00
src: "./icons/favicon-32x32.png",
sizes: "32x32",
type: "image/png",
},
{
2020-10-23 22:44:46 +02:00
src: "./icons/icon-any.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
2020-10-23 22:44:46 +02:00
src: "./icons/icon-any.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "any",
},
{
2020-10-23 22:44:46 +02:00
src: "./icons/icon-maskable.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
{
2020-10-23 22:44:46 +02:00
src: "./icons/safari-pinned-tab.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "monochrome",
},
],
iconPaths: {
2020-10-23 22:44:46 +02:00
favicon32: "assets/icons/favicon-32x32.png",
favicon16: "assets/icons/favicon-16x16.png",
appleTouchIcon: "assets/icons/icon-maskable.png",
maskIcon: "assets/icons/safari-pinned-tab.svg",
msTileImage: "assets/icons/icon-any.png",
2020-06-07 02:05:58 +02:00
},
},
};