2020-10-23 22:59:55 +02:00
|
|
|
const manifestOptions = require("./public/assets/manifest.json");
|
|
|
|
|
2020-05-26 00:07:03 +02:00
|
|
|
module.exports = {
|
|
|
|
chainWebpack: (config) => {
|
|
|
|
config.module
|
2020-10-23 22:44:46 +02:00
|
|
|
.rule("yaml")
|
2020-05-26 00:07:03 +02:00
|
|
|
.test(/\.ya?ml$/)
|
2020-10-23 22:44:46 +02:00
|
|
|
.use("raw-loader")
|
|
|
|
.loader("raw-loader")
|
2020-05-26 00:07:03 +02:00
|
|
|
.end();
|
|
|
|
},
|
2020-10-23 22:44:46 +02:00
|
|
|
publicPath: "",
|
2020-05-31 02:17:39 +02:00
|
|
|
pwa: {
|
2020-10-23 22:44:46 +02:00
|
|
|
manifestPath: "assets/manifest.json",
|
|
|
|
appleMobileWebAppStatusBarStyle: "black",
|
|
|
|
appleMobileWebAppCapable: "yes",
|
2020-10-23 22:59:55 +02:00
|
|
|
name: manifestOptions.name,
|
|
|
|
themeColor: manifestOptions.theme_color,
|
|
|
|
manifestOptions,
|
2020-06-06 06:13:31 +02:00
|
|
|
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
|
|
|
},
|
|
|
|
},
|
2020-05-26 00:07:03 +02:00
|
|
|
};
|