@swrve/icon-fonts

0.0.5 • Public • Published

Font Icon Generator

Why ?

This is a temporary (and very basic) solution to generate our own font icon. The script is using webfonts-generator, it takes all the SVG's file in the svg folder and generate font files alongside a CSS file.

  • .css
  • .eot
  • .svg
  • .ttf
  • .woff
  • .woff2

The goal is to use webfonts-generator as a webpack plugin, so we can automate the building of the font icon easily.

Note from MAP : I didn't manage to implement webfonts-loader with our current webpack config because the plugin extract-text-webpack-plugin hasn't been updated for Webpack 4. There are workaround and other solution, but it need some times that I didn't have at that time to investigate more.

How to use

Add any svg icons in the src folder and run the command :

node icon-font.js

Readme

Keywords

none

Package Sidebar

Install

npm i @swrve/icon-fonts

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

8.66 kB

Total Files

13

Last publish

Collaborators

  • deepakatmg
  • brendan_whelan_mg
  • marymcginty
  • frankie-swrve
  • swrve-engineering
  • kevinbrodigan
  • dominic.marmion
  • thomas.mcdonnell