关于vue打包是因代码校验报错
Posted yuwen1995
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于vue打包是因代码校验报错相关的知识,希望对你有一定的参考价值。
单个文件中:
1、/* eslint - disable */
2、/* eslint-disable no-new */
当然也支持全局:
3、bulid > webpack.base.config.js 将createLintingRule方法 内容注释
{ test: /.(js|vue)$/, loader: ‘eslint-loader‘, enforce: ‘pre‘, include: [resolve(‘src‘), resolve(‘test‘)], options: { formatter: require(‘eslint-friendly-formatter‘) } }
以上是关于关于vue打包是因代码校验报错的主要内容,如果未能解决你的问题,请参考以下文章