Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit b1066f9

Browse files
committed
CD
1 parent 6b4ab02 commit b1066f9

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed

azure-pipelines.pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
displayName: 'NPM - Build Prod - AdminUI'
6060
inputs:
6161
command: custom
62-
customCommand: 'run build --prod --base-href=/admin-ui/'
62+
customCommand: 'run build -- --base-href=/admin-ui/'
6363
workingDir: src/Frontend/Jp.AdminUI
6464

6565
- task: Npm@1
6666
displayName: 'NPM - Build Prod - UserManagement'
6767
inputs:
6868
command: custom
69-
customCommand: 'run build --prod --base-href=/user-management/'
69+
customCommand: 'run build -- --base-href=/user-management/'
7070
workingDir: src/Frontend/Jp.UserManagement

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ jobs:
113113
displayName: 'NPM - Build Prod - AdminUI'
114114
inputs:
115115
command: custom
116-
customCommand: 'ng build --prod --base-href=/admin-ui/'
116+
customCommand: 'run build -- --base-href=/admin-ui/'
117117
workingDir: src/Frontend/Jp.AdminUI
118118

119119
- task: Npm@1
120120
displayName: 'NPM - Build Prod - UserManagement'
121121
inputs:
122122
command: custom
123-
customCommand: 'ng build --prod --base-href=/user-management/'
123+
customCommand: 'run build -- --base-href=/user-management/'
124124
workingDir: src/Frontend/Jp.UserManagement
125125

126126
- task: CopyFiles@2

src/Frontend/Jp.AdminUI/angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"polyfills": "src/polyfills.ts",
2929
"assets": [
3030
"src/assets",
31-
"src/silent-refresh.html"
31+
"src/silent-refresh.html",
32+
"src/web.config"
3233
],
3334
"styles": [
3435
"src/app/core/preloader/preloader.scss",
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.web>
4+
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>
5+
</system.web>
6+
<system.webServer>
7+
<handlers>
8+
<remove name="aspNetCore" />
9+
</handlers>
10+
<security>
11+
<requestFiltering>
12+
<requestLimits maxQueryString="32768"/>
13+
</requestFiltering>
14+
</security>
15+
<rewrite>
16+
<rules>
17+
<rule name="Angular" stopProcessing="true">
18+
<match url="^(?!.*(.js|.bundle.map|.bundle.js.gz|.bundle.css|.bundle.css.gz|.png|.jpg|.ico|.chunk.js|.woff|.woff2|api|.eot|.svg|.ttf|assets|.css)).*$" ignoreCase="false" />
19+
<conditions logicalGrouping="MatchAll">
20+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false"/>
21+
</conditions>
22+
<action type="Rewrite" url="/admin-ui/" appendQueryString="true" />
23+
</rule>
24+
</rules>
25+
</rewrite>
26+
<staticContent>
27+
<remove fileExtension=".svg" />
28+
<remove fileExtension=".eot" />
29+
<remove fileExtension=".woff" />
30+
<remove fileExtension=".woff2" />
31+
<remove fileExtension=".json" />
32+
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
33+
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
34+
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
35+
<mimeMap fileExtension=".woff2" mimeType="application/x-woff" />
36+
<mimeMap fileExtension=".json" mimeType="application/json" />
37+
</staticContent>
38+
</system.webServer>
39+
</configuration>

0 commit comments

Comments
 (0)