学习.eslintignore文件怎么使用;Less和scss的样式穿透

198 阅读1分钟

在脚手架项目最外层创建一个.eslintignore文件

在文件中写需要忽略的文件夹名字:

/dist  // 这是打包后生成的文件,不需要eslint风格检查
/src/vender  // 这是第三方文件,不需要eslint风格检查

样式穿透的三种写法:

// 样式穿透,有三种写法:
// 1. >>>  在less中使用
// 2. /deep/ 在less中使用
// 3. ::v-deep 在scss中使用
.img-container {
 border-radius:50%;
  /deep/ img {
   width: 100px;
   heigth: 100px;
   }
 }