Skip to content

Commit e0b5b31

Browse files
authored
[mercury][readme][angular] Use {{ CSS bundles final path }} instead of fixed paths (#670)
1 parent d2cdcfb commit e0b5b31

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/mercury/docs/installation-for-angular.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
# Installation for Angular
44

55
- [1. Preparation](#1-preparation)
6-
76
- [1.1. Decide the assets paths](#11-decide-the-assets-paths)
87

98
- [1.2. Build Mercury before starting dev server or prod builds](#12-build-mercury-before-starting-dev-server-or-prod-builds)
109

1110
- [2. Copy the assets to the dev server and prod builds](#2-copy-the-assets-to-the-dev-server-and-prod-builds)
1211

1312
- [3. Setup](#3-setup)
14-
1513
- [3.1 Import declarations](#31-import-declarations)
1614

1715
- [3.2 Include a CSS loader service](#32-include-a-css-loader-service)
@@ -138,7 +136,7 @@ Custom fonts and icons are distributed under:
138136
}
139137
```
140138

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:
142140

143141
```plaintext
144142
📁 dist
@@ -215,12 +213,12 @@ export class CssLoaderService {
215213

216214
const linkBaseBundle = document.createElement("link");
217215
linkBaseBundle.rel = "stylesheet";
218-
linkBaseBundle.href = `/assets/css/${bundleToHashMappings["base/base"]}.css`;
216+
linkBaseBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/base"]}.css`;
219217
document.head.appendChild(linkBaseBundle);
220218

221219
const linkIconsBundle = document.createElement("link");
222220
linkIconsBundle.rel = "stylesheet";
223-
linkIconsBundle.href = `/assets/css/${bundleToHashMappings["base/icons"]}.css`;
221+
linkIconsBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/icons"]}.css`;
224222
document.head.appendChild(linkIconsBundle);
225223
}
226224
}

0 commit comments

Comments
 (0)