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

iconfont问题 #31

Closed
ChiaJune opened this issue Oct 3, 2017 · 3 comments
Closed

iconfont问题 #31

ChiaJune opened this issue Oct 3, 2017 · 3 comments

Comments

@ChiaJune
Copy link

ChiaJune commented Oct 3, 2017

我在文件中引入font-awesome(已经安装了)
我是这样引入的:import 'font-awesome/css/font-awesome.css'
结果打包出来是这样的:

@font-face {
    font-family:FontAwesome;
    src:url([object Object]);
    src:url([object Object]?#iefix&v=4.7.0) format("embedded-opentype"), url([object Object]) format("woff2"), url([object Object]) format("woff"), url([object Object]) format("truetype"), url([object Object]#fontawesomeregular) format("svg");
    font-weight:400;
    font-style:normal
}

其实,开发环境也是这样的,不知道是什么原因

@ChiaJune
Copy link
Author

ChiaJune commented Oct 3, 2017

找到问题了,是file-loader的锅(详细请看,1.1.3有这个问题),1.1.4或0.11.2没有问题。

@ChiaJune ChiaJune closed this as completed Oct 3, 2017
@SidKwok
Copy link
Owner

SidKwok commented Oct 3, 2017

我看了一下我没有升级file-loader的1.x版本啊,是你升级的?

@ChiaJune
Copy link
Author

ChiaJune commented Oct 6, 2017

尴尬,我不知道我啥时候升级了的:smile:

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