1.0.6 • Published 2 years ago

dependency-check-webpack-plugin v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago