Auto installing missing dependencies in package.json before webpack compilation step
npm i --save npm-auto-install-webpack-plugin
import NpmAutoInstallWebpackPlugin from "npm-auto-install-webpack-plugin";
export default {
plugins: [
new NpmAutoInstallWebpackPlugin(options),
],
};
const { NpmAutoInstallWebpackPlugin } = require("npm-auto-install-webpack-plugin");
module.exports = {
plugins: [
new NpmAutoInstallWebpackPlugin(options),
],
};
new NpmAutoInstallWebpackPlugin(options)
Disable auto-installing missing dependencies with the command.
- Default:
false
If true, it will use yarn add
for installing dependencies instead of npm install
.
- Default:
false
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request