Skip to content

Releases: vusion/icon-font-loader

v1.1.1

29 Nov 09:15
Compare
Choose a tag to compare

⚡️ Enhancement:

  • Avoid useless webfonts generating process; Optimize the compilation; Fix #15
  • Handle errors; Fix #14

v1.1.0

14 Nov 14:09
Compare
Choose a tag to compare

✨ New Features:

  • Add a new option startCodepoint passed through to webfontsGenerator

🐛 Bug Fixes:

  • Join output option to @font-face url

v1.0.0

13 Nov 08:22
Compare
Choose a tag to compare

🔖 Bump version

v0.3.2

13 Nov 08:20
Compare
Choose a tag to compare

⚡️ 增强:

  • 增加了文档的可读性

🐛 修复:

  • 修复图标路径找不到时直接报错的问题

⚡️ Enhancement:

  • Make README easier to read

🐛 Bug Fixes:

  • Fix error thrown when icon path not found

v0.3.1

27 Oct 10:37
Compare
Choose a tag to compare

✨ 新特性:

  • 添加mergeDuplicates选项,如果为true将自动合并重复的图标。可以减少生成的字体文件大小,但可能会增加编译时间,建议在发布阶段开启。

⚡️ 增强:

  • 保持生成的@font-face文件与自动插入的<style>节点一致
  • 字体文件的hash统一使用svg的hash,从而不必每次编译都改变hash

💥 非兼容性更新:

  • 移除globalCSSTemplate参数
  • 需要给localCSSTemplate参数传入模板内容而非路径

✨ New Features:

  • Add new option mergeDuplicates. If true, it can merge duplicated icons in font file. Shrink built font file size, but make compilation slower. It's better to enable this option in production mode

⚡️ Enhancement:

  • Keep the generated @font-face file consistent with inserted <style> tag content
  • Use hash of svg file to be cache buster in @font-face so that cache buster won't be changed every time

💥 Breaking Changes:

  • Remove the option globalCSSTemplate
  • localCSSTemplate accepts template content instead of a path

v0.2.5

19 Oct 14:17
Compare
Choose a tag to compare

✨ 新特性:

  • 添加property选项,用于自定义CSS虚拟属性名
  • 添加auto选项,决定在document中自动插入@font-face,或生成一个含@font-face的css文件

🐛 修复:

  • 修复在Windows下@font-face中url的\问题
  • 去除addStyle.js文件中ES6格式的代码

✨ New Features:

  • Add new option property to custom virtual property name in CSS
  • Add new option auto to determine whether insert @font-face into the document with a style tag automatically or emit a css file

🐛 Bug Fixes:

  • Fix \ problem in @font-face on Windows
  • Remove es6-form code in addStyle.js

v0.2.4

10 Oct 12:18
Compare
Choose a tag to compare

🐛 修复:

  • 因合并ConcatSource顺序错误导致addStyle函数不工作

🐛 Bug Fixes:

  • Fix addStyle not working due to concat source sequence error

v0.2.3

30 Sep 07:37
Compare
Choose a tag to compare

🐛 修复:

  • 字体定义只插入到JS资源中
  • 修复插入字体定义时ICON_FONT_STYLE undefined的问题

🐛 Bug Fixes:

  • Only insert script in js assets
  • Fix ICON_FONT_STYLE undefined due to the sequence of inserted script

v0.2.2

27 Sep 05:05
Compare
Choose a tag to compare

🐛 修复:

  • 修复undefined window错误当使用HtmlWebpackPlugin的时候

🐛 Bug Fixes:

  • Fix error undefined window while using HtmlWebpackPlugin

v0.2.1

26 Sep 02:49
Compare
Choose a tag to compare

🐛 修复:

  • 修复addStyleModule.addChunk不存在而报错的问题

🐛 Bug Fixes:

  • Fix addStyleModule.addChunk undefined