Revize 913ab193
Přidáno uživatelem Jakub Hlaváč před asi 4 roky(ů)
angular.json | ||
---|---|---|
28 | 28 |
"src/assets" |
29 | 29 |
], |
30 | 30 |
"styles": [ |
31 |
"node_modules/bootstrap/dist/css/bootstrap.css", |
|
31 | 32 |
"src/styles.scss" |
32 | 33 |
], |
33 |
"scripts": [] |
|
34 |
"scripts": [ |
|
35 |
"node_modules/jquery/dist/jquery.js", |
|
36 |
"node_modules/bootstrap/dist/js/bootstrap.js" |
|
37 |
] |
|
34 | 38 |
}, |
35 | 39 |
"configurations": { |
36 | 40 |
"production": { |
... | ... | |
65 | 69 |
"serve": { |
66 | 70 |
"builder": "@angular-devkit/build-angular:dev-server", |
67 | 71 |
"options": { |
68 |
"browserTarget": "SensLog:build" |
|
72 |
"browserTarget": "SensLog:build", |
|
73 |
"proxyConfig": "proxy-config.json" |
|
69 | 74 |
}, |
70 | 75 |
"configurations": { |
71 | 76 |
"production": { |
package.json | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"name": "sens-log", |
3 |
"version": "0.0.0",
|
|
3 |
"version": "0.0.1-SNAPSHOT",
|
|
4 | 4 |
"scripts": { |
5 | 5 |
"ng": "ng", |
6 | 6 |
"start": "ng serve", |
proxy-config.json | ||
---|---|---|
1 |
{ |
|
2 |
"/api": { |
|
3 |
"target": "http://localhost:8080", |
|
4 |
"secure": false, |
|
5 |
"pathRewrite": { |
|
6 |
"^/api": "" |
|
7 |
} |
|
8 |
} |
|
9 |
} |
Také k dispozici: Unified diff
Adding proxy-config.json