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",
|
2021-04-25 23:38:41 +02:00
|
|
|
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,
|
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
|
|
|
},
|
|
|
|
},
|
2022-05-09 23:47:05 +02:00
|
|
|
devServer: {
|
2022-06-05 21:50:28 +02:00
|
|
|
disableHostCheck: true,
|
2022-05-09 23:47:05 +02:00
|
|
|
},
|
2020-05-26 00:07:03 +02:00
|
|
|
};
|