** This package is now deprecated and archived. It hasn't seen any development in the past 7 years and it's not something I use or maintain anymore. **
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.
npm install npm-check-webpack-plugin
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] }*/)
]
};