Mercurial > gemma
view client/vue.config.js @ 543:b111b765b6cd
client: add hardwired WFS layer to map
* As prototype add a getfeature WFS layer asking our own server
for the fairways_dimensions. It has deactivate filter code.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 30 Aug 2018 17:07:35 +0200 |
parents | f6d61657b487 |
children | 99968a7394f7 |
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 } }, disableHostCheck: true } };