https://github.com/valpackett/broccoli-webpack
A Broccoli plugin for webpack
https://github.com/valpackett/broccoli-webpack
broccoli broccoli-plugin webpack
Last synced: about 1 month ago
JSON representation
A Broccoli plugin for webpack
- Host: GitHub
- URL: https://github.com/valpackett/broccoli-webpack
- Owner: valpackett
- License: unlicense
- Created: 2014-07-08T10:39:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T22:42:27.000Z (over 3 years ago)
- Last Synced: 2025-03-29T20:03:57.211Z (2 months ago)
- Topics: broccoli, broccoli-plugin, webpack
- Language: JavaScript
- Size: 10.7 KB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# broccoli-webpack [](https://www.npmjs.org/package/broccoli-webpack) [](https://www.npmjs.org/package/broccoli-webpack) [](https://travis-ci.org/myfreeweb/broccoli-webpack) [](https://gemnasium.com/myfreeweb/broccoli-webpack) [](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).