Skip to content

avs-doom/dependency-checker-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm node npm size

Dependency Checker Webpack Plugin

Plugin that simplifies checke of dependencies version and notify about new version.

Install

Webpack 5

  npm i --save-dev dependency-checker-webpack-plugin
  yarn add --dev dependency-checker-webpack-plugin

Use

The plugin will output information in the console and toast of Windows, MacOS or Linux, for this you need to add it as below and add the package names to the dependency list for checking:

webpack.config.js

import DependencyCheckerPlugin from 'dependency-checker-webpack-plugin';

module.exports = {
  ...
  plugins: [new DependencyCheckerPlugin({
    depNames: ['dependency-checker-webpack-plugin']
  })],
  ...
};

It will create a notification for dependencies that have new versions.

Demo

Settings

new DependencyCheckerPlugin({
  depNames: array,
  options?: object
})
Name Type Default Description
depNames {Array.<string>} [''] Names of packages to be checked
options.showToast {Boolean} true Enable toast of Windows, MacOS or Linux
options.showConsole {Boolean} true Enable notify in console
options.devServerOnly {Boolean} true For DevServer only
options.disableCertValid {Boolean} false NODE_TLS_REJECT_UNAUTHORIZED = 0 or 1

About

Dependencies Checker Webpack Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published