1.1.0 • Published 9 years ago

npm-check-webpack-plugin v1.1.0

Weekly downloads
23
License
ISC
Repository
-
Last release
9 years ago

npm-check-webpack-plugin

Uses the npm-check library to check for missing dependencies before running a webpack build. By default, if it finds any missing or outdated dependencies it will automatically run npm install before continuing with the build.

Installation

npm install npm-check-webpack-plugin

Usage

In webpack.config.js (or whatever file you have your webpack config in):

var NpmCheckPlugin = require('npm-check-webpack-plugin');
/* ES6:
   import NpmCheckPlugin from 'npm-check-webpack-plugin';
 */

module.exports =
  { //... webpack config
    plugins:
      [ new NpmCheckPlugin(/* { autoInstall: [false|true*] silent: [false*|true] }*/)
      ]
  };