Mercurial > gemma
annotate client/vue.config.js @ 1620:2e4ec4251c57
refac: staging rebuilt with divs instead tables to accomplish detailsview
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 18 Dec 2018 16:09:44 +0100 |
parents | 18ddb6935aa6 |
children | eb832d81b67a |
rev | line source |
---|---|
568
99968a7394f7
feat: PurgeCSS added to remove unnecessary CSS weight
Thomas Junk <thomas.junk@intevation.de>
parents:
500
diff
changeset
|
1 const CopyWebpackPlugin = require("copy-webpack-plugin"); |
23 | 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 }, | |
629
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
14 css: { |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
15 loaderOptions: { |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
16 // pass options to sass-loader |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
17 sass: { |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
18 // @/ is an alias to src/ |
1448
ef388dcbb946
refac: reverting unecessary port from scss to sass
Thomas Junk <thomas.junk@intevation.de>
parents:
1272
diff
changeset
|
19 data: `@import "@/assets/application.scss";` |
629
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
20 } |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
21 } |
8278b2fb0c33
refac: UI refactorization
Thomas Junk <thomas.junk@intevation.de>
parents:
568
diff
changeset
|
22 }, |
3 | 23 devServer: { |
24 proxy: { | |
329
71970f03c9e8
SPA: Fixed setup for proxy in "serve" dev server mode.
Sascha Wilde <wilde@intevation.de>
parents:
23
diff
changeset
|
25 "/api": { |
353
a80e589c5ade
fix: Fix broken environment variable setting
Thomas Junk <thomas.junk@intevation.de>
parents:
329
diff
changeset
|
26 target: process.env.VUE_BACKEND_API_URL, |
3 | 27 secure: false |
11
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
28 }, |
23 | 29 "/img/*": { |
11
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
30 target: "http://localhost:5000", |
e0b5dd98665e
current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents:
3
diff
changeset
|
31 secure: false |
3 | 32 } |
500
f6d61657b487
Allow accessing client from outside localhost via hostname
Tom Gottfried <tom@intevation.de>
parents:
353
diff
changeset
|
33 }, |
f6d61657b487
Allow accessing client from outside localhost via hostname
Tom Gottfried <tom@intevation.de>
parents:
353
diff
changeset
|
34 disableHostCheck: true |
3 | 35 } |
36 }; |