Webpack构建失败了CSS字体

时间:2016-12-10 05:27:04

标签: css webpack webfonts

我遇到了像

这样的错误
''

我认为它与加载字体文件有关。我的webpack配置如下。我尝试使用url和文件加载器但是失败了

ERROR in ./src/fonts/VistaSansOT-Light.ttf
Module parse failed: /home/jiewmeng/Dropbox/goldbell-client/src/fonts/VistaSansOT-Light.ttf Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./~/css-loader?minimize!./~/sass-loader!./~/postcss-loader!./src/css/custom.css 6:876-917

0 个答案:

没有答案