关于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') } }