1、打包运行的时候,过滤eslint语法检查,即报这个错的时候:
Errors: 3 http://eslint.org/docs/rules/indent You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.
解决方法:webpack.base.conf.js文件中找到
...(config.dev.useEslint ? [createLintingRule()] : []),
并注释掉
// ...(config.dev.useEslint ? [createLintingRule()] : []),
即可运行。