Mercurial > gemma
view client/vue.config.js @ 249:e0f47d9ebde0
Hotfix: changed login call back to GET from POST.
For some reason POST didn't work as intended: the credentials were not
send... This is only a workaround, as POST would still be the right
way to go...
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 27 Jul 2018 11:04:20 +0200 |
parents | c1ef0be0ae3d |
children | 71970f03c9e8 |
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: "http://localhost:8000", secure: false }, "/img/*": { target: "http://localhost:5000", secure: false } } } };