0.0.3 • Published 4 years ago
mconsole-loader v0.0.3
作用
删除代码里面的console.log,用于生产环境
用法
rules: [
{
test:/\.js$/,
loader: 'mconsole-loader',
options: {
env: 'production'
}
}
]
const t = 'lll';
for(let i of t){
console.log(i)
}
function f() {
console.log('xxx')
}
const v = 'xxx';
console.log(v);
console.log('/////xxx');
console.log('oooop---====()[]');
console.log();