1.0.6 • Published 3 years ago

dependency-check-webpack-plugin v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

NameTypeRequiredDefaultDescription
skipbooleanfalsefalseskip plugin execution
installCommandstringfalse'yarn install'install command in your project
packageJSONPathstringfalse${executeDir}/package.jsonpackage.json path in your project
nodeModulesPathstringfalse${executeDir}/node_modulesnode_modules path in your project
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago