# yarn-add-webpack-plugin

> Automatically add packages to Webpack using Yarn

Latest version **0.1.0** (published 2017-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install yarn-add-webpack-plugin
pnpm add yarn-add-webpack-plugin
yarn add yarn-add-webpack-plugin
bun add yarn-add-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-07-13 |
| First published | 2017-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Steven Truesdell |
| Maintainers | strues |
| Keywords | webpack, webpack-plugin, yarn, build-tool |

## Links

- npm: https://www.npmjs.com/package/yarn-add-webpack-plugin
- Repository: https://github.com/strues/yarn-add-webpack-plugin
- Homepage: https://github.com/strues/yarn-add-webpack-plugin#readme
- Issues: https://github.com/strues/yarn-add-webpack-plugin/issues
- npm.io page: https://npm.io/package/yarn-add-webpack-plugin

## Dependencies (5)

- [json5](https://npm.io/package/json5.md) ^0.5.1
- [pkg-up](https://npm.io/package/pkg-up.md) ^2.0.0
- [resolve](https://npm.io/package/resolve.md) ^1.3.3
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.4.1
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^5.1.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-07-13

## README

<div align="center">
<img src="http://i.magaimg.net/img/z3q.png" alt="yarn logo" height="100"/>
</div>

# yarn-add-webpack-plugin

[![Build Status](https://travis-ci.org/strues/yarn-add-webpack-plugin.svg?branch=master)](https://travis-ci.org/strues/yarn-add-webpack-plugin) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/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](https://github.com/webpack-contrib/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

```javascript
  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,
  });
```

---
_Source: https://npm.io/package/yarn-add-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
