1.使用vue init webpack-simple element-ui 运行时出现错误 ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf Module parse failed: Unex
{
test: /\.(png|jpg|gif|ttf|woff|svg)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}
解决方法:
在webpack.config.js中找 loader: 'file-loader'行在test中加入ttf|woff 再次运行即可通过编译。