spaze/fa-extract

This package is abandoned and no longer maintained. No replacement package was suggested.

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

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v0.0.1 2019-07-23 03:39 UTC

This package is auto-updated.

Last update: 2023-10-20 02:03:27 UTC


README

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.