You must set up the hosts file to map bucgenerichost to
localhost and create a new Angular8 project.
Procedure
-
Configure the hosts file to map
bucgenerichost to
localhost. For example,
- Open the hosts file.
- Windows 10: C:\Windows\System32\drivers\etc\hosts
- Mac OS: sudo nano /private/etc/hosts
- Linux: sudo vim /etc/hosts
- Add the following entry to map
bucgenerichost to
localhost:127.0.0.1 localhost bucgenerichost
- If there is an existing entry that maps
localhost, add
bucgenerichost to the existing entry. For example,
127.0.0.1 localhost <existing.custom.domain.mapping> bucgenerichost
- Create a new Angular8 project.
- Create an Angular project with style as scss.
ng new <project name> --style=scss
For example, ng new buc-custom-app-starter --style=scss
- Navigate to the project directory.
- Set the preferred package manager as yarn.
ng config -g cli.packageManager yarn