Skip to content

Latest commit

 

History

296 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@rdlabo/ionic-angular-collect-icons

npm version License: MIT

What is this?

This library is used to uniquely group the ionIcons in a project, and generate for export ionIcons file. In small projects, it is difficult to manage addIcons() of ionIcons each time, so we automated it.

  • development: Stress-free development by add all icons at addIcons.
  • Production: Automatically collect and update the ionIcon used in the template prior to build.

Of course, to maximize bundle size reduction, it is important to load a minimum number of icons at each Component lazy loading. This is a compromise to speed up development.

This project is based ionic-team/ionic-angular-standalone-codemods .

Requirements

  • Node.js >= 20
  • ionicons >= 6.0.0

Quick start

After Installation, initialize addIcons and collect icons before production builds:

npx @rdlabo/ionic-angular-collect-icons --initialize true

Details: Initialize and Usage.

Installation

npm install @rdlabo/ionic-angular-collect-icons --save-dev

Documentation

Start with Installation, then Initialize and Usage.

  • Initialize — wire addIcons automatically or by hand.
  • Usage — run the collector before production builds.
  • CLI Options--dry-run, --initialize, paths.
  • FAQ — tests, binding, and main.ts.

Full documentation: https://docs.rdlabo.dev/projects/ionic-angular-collect-icons

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages