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 = ;/* ES6: import NpmCheckPlugin from 'npm-check-webpack-plugin'; */ moduleexports = //... webpack config plugins: /* { autoInstall: [false|true*] silent: [false*|true] }*/ ;