Releases: vusion/icon-font-loader
Releases · vusion/icon-font-loader
v1.1.1
v1.1.0
v1.0.0
v0.3.2
v0.3.1
✨ 新特性:
- 添加
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
✨ 新特性:
- 添加
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