aboutsummaryrefslogtreecommitdiffhomepage
path: root/vue.config.js
blob: 82329d821c8952ea9c37734221434189b7f1d8e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const manifestOptions = require("./public/assets/manifest.json");

module.exports = {
  chainWebpack: (config) => {
    config.module
      .rule("yaml")
      .test(/\.ya?ml$/)
      .use("raw-loader")
      .loader("raw-loader")
      .end();
  },
  publicPath: "",
  pwa: {
    manifestPath: "assets/manifest.json",
    manifestCrossorigin: "use-credentials",
    appleMobileWebAppStatusBarStyle: "black",
    appleMobileWebAppCapable: "yes",
    name: manifestOptions.name,
    themeColor: manifestOptions.theme_color,
    manifestOptions,
    iconPaths: {
      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",
    },
  },
  devServer: {
    disableHostCheck: true,
  },
};