# broccoli-webpack

> A Broccoli plugin for webpack

Latest version **1.0.0** (published 2016-11-02) · Unlicense license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-11-02 |
| First published | 2014-08-05 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Greg V |
| Maintainers | floatboth |
| Keywords | broccoli-plugin, broccoli, webpack |

## Links

- npm: https://www.npmjs.com/package/broccoli-webpack
- Repository: https://github.com/myfreeweb/broccoli-webpack
- Homepage: https://github.com/myfreeweb/broccoli-webpack#readme
- Issues: https://github.com/myfreeweb/broccoli-webpack/issues
- npm.io page: https://npm.io/package/broccoli-webpack

## Dependencies (3)

- [rsvp](https://npm.io/package/rsvp.md) ^3.2.1
- [webpack](https://npm.io/package/webpack.md) ^1.12.14
- [broccoli-caching-writer](https://npm.io/package/broccoli-caching-writer.md) ^2.2.1

## 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

- 1.0.0 (latest) — 2016-11-02
- 0.1.3 — 2015-08-02
- 0.1.2 — 2015-08-02
- 0.1.1 — 2014-08-05

## README

# broccoli-webpack [![npm version](https://img.shields.io/npm/v/broccoli-webpack.svg?style=flat)](https://www.npmjs.org/package/broccoli-webpack) [![npm downloads](https://img.shields.io/npm/dm/broccoli-webpack.svg?style=flat)](https://www.npmjs.org/package/broccoli-webpack) [![Build Status](https://img.shields.io/travis/myfreeweb/broccoli-webpack.svg?style=flat)](https://travis-ci.org/myfreeweb/broccoli-webpack) [![Dependency Status](https://img.shields.io/gemnasium/myfreeweb/broccoli-webpack.svg?style=flat)](https://gemnasium.com/myfreeweb/broccoli-webpack) [![Unlicense](https://img.shields.io/badge/un-license-green.svg?style=flat)](http://unlicense.org)

A [Broccoli] plugin for [webpack].

[Broccoli]: https://github.com/joliss/broccoli
[webpack]: https://github.com/webpack/webpack

## Installation

```bash
$ npm install --save-dev broccoli-webpack
```

## Usage

```js
var WebpackWriter = require('broccoli-webpack')
var js_source = 'src'
var js_bundler = new WebpackWriter([js_source], {
	entry: './main',
	output: {filename: 'app.js'},
	externals: [{'react': 'React', 'jquery': '$'}],
	devtool: 'source-map',
	module: {
		preLoaders: [
			{
				test: /\.js$/,
				loader: "source-map-loader"
			}
		]
	}
})
```

Basically, just pass a tree and a normal [webpack config].
`context` and `output.path` will be set automatically.
For everything else, you're on your own :-)

[webpack config]: http://webpack.github.io/docs/configuration.html

## Contributing

Please feel free to submit pull requests!

By participating in this project you agree to follow the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/4/).

## License

This is free and unencumbered software released into the public domain.  
For more information, please refer to the `UNLICENSE` file or [unlicense.org](http://unlicense.org).

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