dependency-checker-webpack-plugin
v1.0.1
Published
Dependency Version Checker Webpack Plugin
Maintainers
Readme
npm i --save-dev dependency-checker-webpack-plugin
yarn add --dev dependency-checker-webpack-plugin
The plugin will output info in console and to Windows or MacOS notifications, for this you need to add it as indicated below:
webpack.config.js
const DependencyCheckerPlugin = require("dependency-checker-webpack-plugin");
module.exports = {
entry: "index.js",
output: {
path: __dirname + "/dist",
filename: "index_bundle.js",
},
plugins: [new DependencyCheckerPlugin({
depNames: ['dependency-checker-webpack-plugin']
})],
};
Available settings:
| Name | Type | Default | Description |
| :-----------------------------: | :--------------------------------------------------: | :---------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| depNames
| {Array.<string>}
| [''] | Names of packages to be checked |
| options.showToast
| {Boolean}
| true | Enable toast of Windows or MacOC |
| options.showConsole
| {Boolean}
| true | Enable toast of console |
| options.devServerOnly
| {Boolean}
| true | For DevServer only |
| options.disableCertValid
| {Boolean}
| false | NODE_TLS_REJECT_UNAUTHORIZED = 0 or 1 |