vue.config.js中chainWebpack的配置中 tap()是什么意思,tap()中的参数代表什么,当前这种写法代表什么
config.module
.rule('eslint')
.test(/\.(js|vue)$/)
.include
.add(path.resolve('src'))
.add(path.resolve('views'))
.add(path.resolve('about'))
.end()
.use('eslint-loader')
.loader('eslint-loader')
.options({
rules: {
eqeqeq: 'off'
}
})
.tap((option)=>{
option.fix = true;
return option;
})
.end();