mat-icon-import
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "mat-icon-import", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Felix Lemke <flemke.dev@gmail.com> (https://felixlemke.com)", | ||
@@ -5,0 +5,0 @@ "description": "Include only used material icons in SVG format and reduce package size", |
@@ -13,4 +13,6 @@ # Import only used material (and custom) icons in Angular | ||
Import the `IconImportModule` in your application module. | ||
At first download the icons you need from [here](https://material.io/tools/icons?style=baseline) in SVG 24px format (default). The icon names are of type `baseline-[key]-24px.svg`. You will have to use the `key` when importing this lib. | ||
Import the `IconImportModule` in your application module and call the `forRoot()` function with two parameters. At first the array of icon *keys*, e.g. (account_circle, add or whatever you want). The secont parameter is the path where you store the icons in your assets folder. | ||
```typescript | ||
@@ -17,0 +19,0 @@ import { IconImportModule } from 'mat-icon-import'; |
85206
52