关闭vue-cli的警告

使用脚手架创建项目的时候 不小心安装了eslint

运行时控制台报警告: 在 目录 bulid  下  webpack.base.config.js 大的文件中找到 如下代码并注释

const createLintingRule = () => ({
    /*test: /\.(js|vue)$/,
    loader: 'eslint-loader',
    enforce: 'pre',
    include: [resolve('src'), resolve('test')],
    options: {
        formatter: require('eslint-friendly-formatter'),
        emitWarning: !config.dev.showEslintErrorsInOverlay
    }*/
})

猜你喜欢

转载自blog.csdn.net/p930318/article/details/79697305