Skip to content
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设置忽略字体报错 #43

Closed
luxueyan opened this issue Jul 31, 2015 · 3 comments
Closed

ignore设置忽略字体报错 #43

luxueyan opened this issue Jul 31, 2015 · 3 comments

Comments

@luxueyan
Copy link

需求: 我想针对某一字体不进行压缩,设置

ignore:['dist/fonts/Pe-icon-7-stroke.*']

但是抛出了错误

>> "Pe-icon-7-stroke" did not find turetype fonts
Fatal error: "Pe-icon-7-stroke" did not find turetype fonts

貌似仍然去压缩,其实

@aui
Copy link
Owner

aui commented Jul 31, 2015

可以参考 ignore 语法示例

@luxueyan
Copy link
Author

语法貌似没错,我看compress函数里面 并没有处理 webfont.files=[] 是空的情况,我把webfonts打出来了

{ id: '85ef38f6537197370df217d3bc96a9fd',
    name: 'Pe-icon-7-stroke',
    files: [],
    chars: '',
    selectors: [ '[class*=" pe-7s-"]', '[class^=pe-7s-]' ] },

我的理解files 如果是空的话 是不是就不压缩了

aui pushed a commit that referenced this issue Jul 31, 2015
@aui aui closed this as completed Aug 2, 2015
@aui
Copy link
Owner

aui commented Aug 2, 2015

已经更新版本修复此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants