module.exports = {
  devServer: {
    disableHostCheck: true,
  },
  publicPath: ["production", "stage", "u168"].includes(process.env.VUE_ENV)
    ? "/home"
    : "/home",
  outputDir:
  ["production", "u168"].includes(process.env.VUE_ENV)
      ? "../api/public/home"
      : "./dist",
  pwa: {
    name: "SlashCard",
    short_name: "Slash",
    background_color: "#3367D6",
    manifestOptions: {
    display: "browser",  
    icons: [
      {
        src: "./img/icons/logo.png",
        type: "image/png",
        sizes: "192x192",
      },
      {
        src: "./img/icons/logo.png",
        type: "image/png",
        sizes: "512x512",
      },
    ]},
    themeColor: "#4DBA88",
    msTileColor: '#000000',
    iconPaths: {
      msTileImage: 'img/icons/mstile-150x150.png'
    }, 
    //         appleMobileWebAppCapable: 'yes',
    //         appleMobileWebAppStatusBarStyle: 'black',
    workboxPluginMode: "GenerateSW",
    workboxOptions: {
      skipWaiting: true,
    },
  },
};
