|
3 | 3 | # Installation for Angular |
4 | 4 |
|
5 | 5 | - [1. Preparation](#1-preparation) |
6 | | - |
7 | 6 | - [1.1. Decide the assets paths](#11-decide-the-assets-paths) |
8 | 7 |
|
9 | 8 | - [1.2. Build Mercury before starting dev server or prod builds](#12-build-mercury-before-starting-dev-server-or-prod-builds) |
10 | 9 |
|
11 | 10 | - [2. Copy the assets to the dev server and prod builds](#2-copy-the-assets-to-the-dev-server-and-prod-builds) |
12 | 11 |
|
13 | 12 | - [3. Setup](#3-setup) |
14 | | - |
15 | 13 | - [3.1 Import declarations](#31-import-declarations) |
16 | 14 |
|
17 | 15 | - [3.2 Include a CSS loader service](#32-include-a-css-loader-service) |
@@ -138,7 +136,7 @@ Custom fonts and icons are distributed under: |
138 | 136 | } |
139 | 137 | ``` |
140 | 138 |
|
141 | | -To verify that the assets are successfully copied, build your. Afterwards, check the `/dist` folder — you should see a structure similar to this: |
| 139 | +To confirm that the assets have been copied successfully, build your project. Then, inspect the `/dist` folder — you should see a structure similar to the following: |
142 | 140 |
|
143 | 141 | ```plaintext |
144 | 142 | 📁 dist |
@@ -215,12 +213,12 @@ export class CssLoaderService { |
215 | 213 |
|
216 | 214 | const linkBaseBundle = document.createElement("link"); |
217 | 215 | linkBaseBundle.rel = "stylesheet"; |
218 | | - linkBaseBundle.href = `/assets/css/${bundleToHashMappings["base/base"]}.css`; |
| 216 | + linkBaseBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/base"]}.css`; |
219 | 217 | document.head.appendChild(linkBaseBundle); |
220 | 218 |
|
221 | 219 | const linkIconsBundle = document.createElement("link"); |
222 | 220 | linkIconsBundle.rel = "stylesheet"; |
223 | | - linkIconsBundle.href = `/assets/css/${bundleToHashMappings["base/icons"]}.css`; |
| 221 | + linkIconsBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/icons"]}.css`; |
224 | 222 | document.head.appendChild(linkIconsBundle); |
225 | 223 | } |
226 | 224 | } |
|
0 commit comments