yarn-add-webpack-plugin

Automatically add packages to Webpack using Yarn

MIT License

Downloads
3
Stars
5

yarn-add-webpack-plugin

Allows packages to be installed using Yarn during development. Webpack wont error for any missing dependencies, rather, the missing packages are installed without skipping a beat.

This plugin borrows heavily from the npm-install-webpack-plugin. npm-install-webpack-plugin doesn't support Yarn at the moment (or ever?).

There are no plans to support NPM. There's already a nice plugin for that :)

Usage

const YarnAddWebpackPlugin = require('yarn-add-webpack-plugin');
///
  plugins: [
  new YarnAddWebpackPlugin({
    // save dependencies as development or regular dependencies.
    dev: false,
    // Generate a lock file or don't. It's up to you!
    pure: false,
    // Install missing peerDependencies
    peerDependencies: true,
    // Reduce amount of console logging
    quiet: false,
  });
Package Rankings
Top 14.87% on Npmjs.org
Badges
Extracted from project README
Build Status styled with prettier codecov
Related Projects