Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/mercury/docs/installation-for-angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
# Installation for Angular

- [1. Preparation](#1-preparation)

- [1.1. Decide the assets paths](#11-decide-the-assets-paths)

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

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

- [3. Setup](#3-setup)

- [3.1 Import declarations](#31-import-declarations)

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

To verify that the assets are successfully copied, build your. Afterwards, check the `/dist` folder — you should see a structure similar to this:
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:

```plaintext
📁 dist
Expand Down Expand Up @@ -215,12 +213,12 @@ export class CssLoaderService {

const linkBaseBundle = document.createElement("link");
linkBaseBundle.rel = "stylesheet";
linkBaseBundle.href = `/assets/css/${bundleToHashMappings["base/base"]}.css`;
linkBaseBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/base"]}.css`;
document.head.appendChild(linkBaseBundle);

const linkIconsBundle = document.createElement("link");
linkIconsBundle.rel = "stylesheet";
linkIconsBundle.href = `/assets/css/${bundleToHashMappings["base/icons"]}.css`;
linkIconsBundle.href = `{{ CSS bundles final path }}${bundleToHashMappings["base/icons"]}.css`;
document.head.appendChild(linkIconsBundle);
}
}
Expand Down
Loading