Mercurial > gemma
annotate client/vue.config.js @ 21:d16f799e0469
Configure Webpack to put its output to web-folder
Since the frontendcode sits under /client, the output of the webpack build
should go under a toplevel folder. Currently this is "web"
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 21 Jun 2018 12:39:46 +0200 |
parents | 88d0d60924cf |
children | c1ef0be0ae3d |
rev | line source |
---|---|
3 | 1 module.exports = { |
21
d16f799e0469
Configure Webpack to put its output to web-folder
Thomas Junk <thomas.junk@intevation.de>
parents:
13
diff
changeset
|
2 outputDir: "../web", |
3 | 3 devServer: { |
4 proxy: { | |
5 "/api/*": { | |
6 target: "http://localhost:8000", | |
7 secure: false | |
11
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
8 }, |
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
9 "/assets/*": { |
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
10 target: "http://localhost:5000", |
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
11 secure: false |
3 | 12 } |
13 } | |
14 } | |
15 }; |