3.0.2 • Published 6 years ago

drop-console-webpack-plugin v3.0.2

Weekly downloads
148
License
MIT
Repository
github
Last release
6 years ago

drop-console-webpack-plugin

A webpack plugin for removing console and supporting webpack4

Installation

npm install drop-console-webpack-plugin --save

Usage

    const DropConsoleWebpackPlugin = require('drop-console-webpack-plugin')

    plugins: [
        new DropConsoleWebpackPlugin(),
    ]

Notes

if   webpack version < 4    :    4.0.0>drop-console-webpack-plugin version >=3.0.0
if   webpack version >= 4   :    drop-console-webpack-plugin version >=4.0.0 && nodejs version > 7.6

Options

Name | type | default | Description
---- | ---- | ------- | -----------
drop_log | Boolean | true | remove console.log(...)
drop_info | Boolean | true | remove console.info(...)
drop_warn | Boolean | false | remove console.warn(...)
drop_error | Boolean | false | remove console.error(...)
exclude   | Array | [] | exclude chunk

Code

new DropConsoleWebpackPlugin({
    drop_log    : true, 
    drop_info   : true,
    drop_warn   : false,
    drop_error  : false,
    exclude     : [],
})
3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

2.2.4

6 years ago

1.4.1

6 years ago

1.3.2

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

1.3.1

6 years ago

2.2.0

6 years ago

1.1.6

6 years ago

2.1.4

6 years ago

1.2.1

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago