Skip to content

Releases: Workshape/icon-font-generator

v2.1.9: Merge pull request #38 from Workshape/better-paths-and-css-selector-o…

18 Jul 01:23
aecdded
Compare
Choose a tag to compare
  • Implement --cssfontsurl option which allows specifying a base url used in the CSS template which will override the otherwise relatively generated one
  • Ensure using --csspath and --htmlpath will always resolve relativity between each others filepaths, and fix logging of their destinations
  • Implement --selector option which allows specifying more complex base selectors which will be passed to the core library
  • Add --tag option
  • Ensure the CSS template supports both usage of a baseSelector and the previous implementation which would generate a pattern-based selector for the classNames
  • Import the CSS file in the generated HTML rather than inlining the generated CSS

v2.1.8: Merge pull request #37 from Workshape/bug/string-errors

17 Jul 21:04
554b39e
Compare
Choose a tag to compare

Changelog

13 Apr 09:06
Compare
Choose a tag to compare

Migrating from v1.x.x

The main three changes to keep in mind are:

  • The default classname was changed from icons- to icon- (to match the --help text) - you can make if behave as before by just adding --prefix icons to the execution
  • Node v8.1.0 or higher is now required - Please upgrade node or downgrade the module - nothing wrong with using v1.1.2!
  • Change in the CSS template that is generated: #26

Full Changelog

  • Refactoring and clean-up
  • Rewrite using async / await
  • Add eslint and dependencies as devDependencies, make it easier to contribute
  • Add codepoints option that allows feeding a codepoints JSON map
  • Change default classname prefix from icons- to icon-
  • Fix parser for Windows environments: #23
  • Set font-family for only i elements with classPrefix: #26