(I refer this link [Issue #2662](https://github.com/angular/angular-cli/issues/2662) for that), I add CSS in `angular.json` and `import library instyle.css` It gives an error like :

```
./src/styles.css (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./src/styles.css)

```

What is the proper way to install material icon library in the local project in angular?

```
npm install material-design-icons-iconfont --save

```

`angular.json`

```
"styles": [
  "src/styles.css",
  "../node_modules/material-design-icons/iconfont/material-icons.css",
],

```

`style.css`

```
@import "~material-design-icons-iconfont/dist/material-design-icons";

```

`index.html`

```
<link href="../material-design-icons-iconfont/dist/fonts/" rel="stylesheet">

```