Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strues/yarn-add-webpack-plugin
Automatically add packages to Webpack using Yarn
https://github.com/strues/yarn-add-webpack-plugin
webpack webpack-plugin yarn
Last synced: 3 months ago
JSON representation
Automatically add packages to Webpack using Yarn
- Host: GitHub
- URL: https://github.com/strues/yarn-add-webpack-plugin
- Owner: strues
- License: mit
- Created: 2017-07-13T21:43:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T08:29:53.000Z (over 7 years ago)
- Last Synced: 2024-10-04T15:05:00.889Z (4 months ago)
- Topics: webpack, webpack-plugin, yarn
- Language: JavaScript
- Size: 62.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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) [![codecov](https://codecov.io/gh/strues/yarn-add-webpack-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/strues/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`](https://github.com/webpack-contrib/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
```javascript
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,
});
```