1.cnpm install style-loader -Swebpack
2.在webpack.config.js裏配置web
{npm
test: /\.(eot|svg|ttf|woff|woff2)$/, loader: 'file-loader' 複製代碼
},svg