在 webpack.config.js 中加入这个依赖
webpack.config.js
{ test: /\.(eot|svg|ttf|woff|woff2)(\?\S*)?$/, loader: 'file-loader' }