console-argument-tracker-loader

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i console-argument-tracker-loader

Weekly Downloads

3

Version

0.1.0

License

ISC

Unpacked Size

2.02 kB

Total Files

3

Last publish

Collaborators

  • polikm5