【blog】vue搭建相关问题

!!vue-style-loader!css-loader?

vue搭建成功,新建自己的页面,我想在页面中使用scss预处理,但是npm run dev后报错

These dependencies were not found:

* @/user in ./src/router/index.js
* !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-4866abf7","scoped":false,"hasInlineConfig":false}!sass-loader?{"sourceMap":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue in ./src/App.vue

是因为我们没有安装scss的相关包,运行以下命令进行安装

npm install –save-dev sass-loader
npm install –save-dev node-sass

Eslint 配置修改

eslint的配置文件在.eslintrc.js

Severity should be one of the following: 0 = off, 1 = warn, 2 = error

所有配置 0. 不应用 1. 作为警告出现 2. 作为错误出现

你可能感兴趣的:(vue)