Package Exports
- npm-auto-install-webpack-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-auto-install-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
npm-auto-install-webpack-plugin
Auto installing missing dependencies in package.json before webpack compilation step
Installation
npm i --save npm-auto-install-webpack-plugin
Usage
webpack.config.babel.js
import NpmAutoInstallWebpackPlugin from "npm-auto-install-webpack-plugin";
export default {
plugins: [
new UnusedFilesWebpackPlugin(options),
],
};
webpack.config.js
const { NpmAutoInstallWebpackPlugin } = require("npm-auto-install-webpack-plugin");
module.exports = {
plugins: [
new NpmAutoInstallWebpackPlugin(options),
],
};
Options
new NpmAutoInstallWebpackPlugin(options)
options.disabled
Disable auto-installing missing dependencies with the command.
- Default:
false
options.useYarn
If true, it will use yarn add
for installing dependencies instead of npm install
.
- Default:
false
Contributing
- 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