Skip to content

Check if there are new dependencies in package.json that have not been installed, and than automatically execute the install command

License

Notifications You must be signed in to change notification settings

actake/dependency-check-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dependency-check-webpack-plugin

Check if there are new dependencies in package.json that have not been installed, and than automatically execute the install command

Install

npm i --save-dev dependency-check-webpack-plugin
yarn add dependency-check-webpack-plugin -D

Usage

webpack.config.js

const { DependencyCheckWebpackPlugin } = require("dependency-check-webpack-plugin");

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    // give some options
    new DependencyCheckWebpackPlugin({})
  ]
}

Options

Name Type Required Default Description
skip boolean false false skip plugin execution
installCommand string false 'yarn install' install command in your project
packageJSONPath string false ${executeDir}/package.json package.json path in your project
nodeModulesPath string false ${executeDir}/node_modules node_modules path in your project

About

Check if there are new dependencies in package.json that have not been installed, and than automatically execute the install command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published