Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
/ fa-extract Public archive

A tool to extract only used icons from Font Awesome JS/SVG icons sets (PRE-ALPHA, I use it but YMMV)

License

Notifications You must be signed in to change notification settings

spaze/fa-extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fa-extract

A tool to extract only used icons from Font Awesome JS/SVG icons sets.

Unsupported, archived, I have started using a different icon pack (https://humbleicons.com/ by @Zraly) and a different loader (I embed SVG icons into my HTML with spaze/svg-icons-latte)

This should be considered a quick and dirty hack, a pre-alpha code. I use it to make my Font Awesome JS file smaller but YMMV.

Install

composer create-project spaze/fa-extract path/to/install

E.g.

composer create-project spaze/fa-extract vendor/spaze/fa-extract

Or wherever. This is installed as a project, not a library, because it's not a library. Your project code is not calling it directly and it might have a dependencies in the future that might collide with your project dependencies.

Usage

php vendor/spaze/fa-extract/bin/fa-extract . ~/desktop/fontawesome-free-5.9.0-web > used.js

Minify

You can minify the output (used.js above) using Closure Compiler to save roughly 50% of the file size.

About

A tool to extract only used icons from Font Awesome JS/SVG icons sets (PRE-ALPHA, I use it but YMMV)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages