Mercurial > gemma
annotate client/vue.config.js @ 261:ab9859981ee3
If a user got renamed kick her/him from the connection pool.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 27 Jul 2018 14:55:47 +0200 |
parents | c1ef0be0ae3d |
children | 71970f03c9e8 |
rev | line source |
---|---|
23 | 1 var CopyWebpackPlugin = require("copy-webpack-plugin"); |
2 | |
3 | 3 module.exports = { |
21
d16f799e0469
Configure Webpack to put its output to web-folder
Thomas Junk <thomas.junk@intevation.de>
parents:
13
diff
changeset
|
4 outputDir: "../web", |
23 | 5 chainWebpack: config => { |
6 let vendorImgPath = process.env.VUE_APP_VENDOR_IMG_PATH; | |
7 if (!vendorImgPath) return; | |
8 config | |
9 .plugin("CopyWebpackPlugin") | |
10 .use(CopyWebpackPlugin, [[{ from: vendorImgPath, to: "img" }]], { | |
11 copyUnmodified: true | |
12 }); | |
13 }, | |
3 | 14 devServer: { |
15 proxy: { | |
16 "/api/*": { | |
17 target: "http://localhost:8000", | |
18 secure: false | |
11
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
19 }, |
23 | 20 "/img/*": { |
11
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
21 target: "http://localhost:5000", |
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
22 secure: false |
3 | 23 } |
24 } | |
25 } | |
26 }; |