1.0.6 • Published 11 months ago

dependency-check-webpack-plugin v1.0.6

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

11 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago