view client/vue.config.js @ 420:be38eec5cc25

fix: Fix email adresses The email adresses of the testusers contained non-ASCII-chars. According to rfc6531 this is allowed. But restrictions are allowed. We do not support non-ASCII-characters in emails. https://tools.ietf.org/html/rfc6531
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 16 Aug 2018 13:47:30 +0200
parents a80e589c5ade
children f6d61657b487
line wrap: on
line source

var CopyWebpackPlugin = require("copy-webpack-plugin");

module.exports = {
  outputDir: "../web",
  chainWebpack: config => {
    let vendorImgPath = process.env.VUE_APP_VENDOR_IMG_PATH;
    if (!vendorImgPath) return;
    config
      .plugin("CopyWebpackPlugin")
      .use(CopyWebpackPlugin, [[{ from: vendorImgPath, to: "img" }]], {
        copyUnmodified: true
      });
  },
  devServer: {
    proxy: {
      "/api": {
        target: process.env.VUE_BACKEND_API_URL,
        secure: false
      },
      "/img/*": {
        target: "http://localhost:5000",
        secure: false
      }
    }
  }
};