npm install --save font-awesome

   之后在main.js中这样引入

import 'font-awesome/css/font-awesome.css'

报错如下图
 

This dependency was not found:

* font-awesome in ./src/main.js

To install it, you can run: npm install --save font-awesome


解决办法:

npm install --save vue-style-loader css-loader sass-loader

Logo

前往低代码交流专区

更多推荐