yarn-add-webpack-plugin

0.1.0 • Public • Published
yarn logo

yarn-add-webpack-plugin

Build Status styled with prettier

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 is heavily based off of Npm Install Webpack Plugin. npm-install-webpack-plugin doesn't support Yarn and there are no plans to at this time.

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

Usage

  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 Sidebar

Install

npm i yarn-add-webpack-plugin

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • strues