{"library":"npm-install-webpack-plugin-cn","title":"npm-install-webpack-plugin","description":"Webpack plugin that automatically installs and saves missing npm dependencies during development. Version 2.0.4 is deprecated; the package was last updated in 2017 and is no longer actively maintained. It works with JavaScript (require/import), CSS @import, and Webpack loaders, but has known issues with newer Webpack versions and Node.js releases. Alternatives include webpack-auto-inject-version or manual dependency management.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install npm-install-webpack-plugin-cn"],"cli":null},"imports":["const NpmInstallPlugin = require('npm-install-webpack-plugin');","const NpmInstallPlugin = require('npm-install-webpack-plugin');\nplugins: [new NpmInstallPlugin()]","new NpmInstallPlugin({ saveDev: true })"],"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: { path: './dist', filename: 'bundle.js' },\n  plugins: [\n    new NpmInstallPlugin({\n      saveDev: true,\n      cacheMin: 999999\n    })\n  ]\n};","lang":"javascript","description":"Shows how to configure the plugin in webpack.config.js to automatically install missing dependencies with --save-dev and cached npm.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}