homer/vue.config.js

30 lines
836 B
JavaScript
Raw Normal View History

2020-10-23 22:59:55 +02:00
const manifestOptions = require("./public/assets/manifest.json");
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",
manifestCrossorigin: "use-credentials",
2020-10-23 22:44:46 +02:00
appleMobileWebAppStatusBarStyle: "black",
appleMobileWebAppCapable: "yes",
2020-10-23 22:59:55 +02:00
name: manifestOptions.name,
themeColor: manifestOptions.theme_color,
manifestOptions,
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
},
},
};