console-argument-tracker-loader
v0.1.0
Published
track argument of console.log
Downloads
3
Maintainers
Readme
Getting Started
To begin, you'll need to install console-argument-tracker-loader
:
npm install --save-dev console-argument-tracker-loader
Usage
// webpack.config.js
rules: [
{
test: /\.js$/,
use: [
{
loader: 'console-argument-tracker-loader'
}
]
}
]
loader Result
development mode
const a = 1;
console.test(a); // a: 1
// equal
console.log("a:",a); // a: 1
--------------------
function a(b) {
console.test(b);
}
//a: ƒ a(b) {
// console.log("b", b);
//}
console.test(a);
production mode
console.log and console.test will be removed