{"library":"npm-install-webpack-plugin","title":"npm-install-webpack-plugin","description":"Webpack plugin that automatically installs and saves missing npm dependencies during development. Current stable version is 4.0.5 (last released August 2017). It intercepts import/require calls in webpack builds and runs npm install for any missing modules, supporting both ES5 and ES6, CSS imports, namespaced packages, webpack loaders, and .babelrc plugins/presets. Unlike manual npm install workflows, this plugin aims to eliminate the cycle of stopping a dev server to install dependencies. However, it only supports npm (not yarn), relies on webpack 1–3, and is no longer actively maintained.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install npm-install-webpack-plugin"],"cli":null},"imports":["import NpmInstallPlugin from 'npm-install-webpack-plugin'","const NpmInstallPlugin = require('npm-install-webpack-plugin')","plugins: [new NpmInstallPlugin()]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst NpmInstallPlugin = require('npm-install-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: { filename: 'bundle.js' },\n  plugins: [\n    new NpmInstallPlugin({\n      dev: false,\n      peerDependencies: true,\n      quiet: false,\n      npm: 'npm'\n    })\n  ]\n};","lang":"javascript","description":"Basic webpack configuration using npm-install-webpack-plugin with explicit options. Automatically installs missing dependencies when you import them.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}