module.exports = {
  devServer: {
    disableHostCheck: true,
  },
  publicPath: ["production", "stage", "u168"].includes(process.env.VUE_ENV)
    ? "/home"
    : "/home",
  outputDir:
  ["production", "u168"].includes(process.env.VUE_ENV)
      ? "../ecard_api/public/home"
      : "./dist",
  pwa: {
    name: "UTel電子名片",
    short_name: "UTel",
    background_color: "#3367D6",
    display: "browser",
    icons: [
      {
        src: "/img/icons/android-chrome-192x192.png",
        type: "image/png",
        sizes: "192x192",
      },
      {
        src: "/img/icons/android-chrome-512x512.png",
        type: "image/png",
        sizes: "512x512",
      },
    ],
    themeColor: "#4DBA88",
    //         msTileColor: '#000000',
    //         appleMobileWebAppCapable: 'yes',
    //         appleMobileWebAppStatusBarStyle: 'black',
    workboxPluginMode: "GenerateSW",
    workboxOptions: {
      skipWaiting: true,
    },
  },
};
