vue-cli脚手架构建了项目,想去除Eslint验证,如何设置?

在webpack.base.conf.js里面删掉下面:

preLoaders: [
      {
        test: /\.vue$/,
        loader: 'eslint',
        include: projectRoot,
        exclude: [/node_modules/, /ignore_lib/]
      },
      {
        test: /\.js$/,
        loader: 'eslint',
        include: projectRoot,
        exclude: [/node_modules/, /ignore_lib/]
      }
    ]

其实我建议,将不想进行校验的文件就想上面一样创建一个ignore_lib,然后全部丢进去。


相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-09-08
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-09-23
相关资源
相似解决方案