-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--ignore的正确用法? #129
Comments
试试使用字符串的方式? |
命令:
返回: { id: '5a5350b6467773a79b6dca14cdb05b5a',
family: 'FontAwesome-web',
files:
[ { url: 'example/styles/fontawesome/fontawesome-webfont.woff',
format: 'woff' } ],
style: 'normal',
weight: '400',
chars: '',
selectors:
[ '.fa',
'.fa-home:before',
'.fa-external-link:before',
'.fa-table:before',
'.fa-info:before' ] } 还是漏掉一个……另外字符串方式怎么指定多个匹配项呢? |
使用 |
命令:
还是不能排除所有文件: { id: '5c3cf3bbe37906a64d1f9e596b858bef',
family: 'Glyphicons Halflings',
files: [],
chars: '',
selectors: [ '.glyphicon' ] },
{ id: '47c35c895ca3f4b9272ceb0d4455bb16',
family: 'FontAwesome',
files: [],
style: 'normal',
weight: 'normal',
chars: '',
selectors:
[ '.fa',
'.fa-home:before',
'.fa-external-link:before',
'.fa-table:before',
'.fa-info:before' ] },
{ id: '9019f2ae4540460a0fec5969430737d2',
family: 'FontAwesome-web',
files:
[ { url: 'example/styles/fontawesome/fontawesome-webfont.woff',
format: 'woff' } ],
style: 'normal',
weight: '400',
chars: '',
selectors:
[ '.fa',
'.fa-home:before',
'.fa-external-link:before',
'.fa-table:before',
'.fa-info:before' ] } 文件名都是直接从输出复制粘贴过去的,我也是完全懵逼了。只有排除CSS文件才可以完全排除文件中定义的所有font-face,可是把不需要压缩的字体分离出来又不是那么简单…… |
请提供一个demo |
在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我实在是搞不懂了……求各位指教:
我要排除两个字体家族,FontAwesome和Glyphicons Halflings。目录结构:
先尝试仅排除第二个FA字体:
返回结果
只排除了部分字体文件?再尝试
--ignore fontawesome*, glyphicons*
,结果一定是我用法不对……请各位指点,怎样才能把三个家族、十一个文件都排除出去~
The text was updated successfully, but these errors were encountered: