https://github.com/drewml/webpack-emit-all-plugin
webpack, but without the `pack`
https://github.com/drewml/webpack-emit-all-plugin
Last synced: about 1 year ago
JSON representation
webpack, but without the `pack`
- Host: GitHub
- URL: https://github.com/drewml/webpack-emit-all-plugin
- Owner: DrewML
- Created: 2017-08-08T14:43:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T19:10:31.000Z (over 6 years ago)
- Last Synced: 2024-04-26T23:43:03.068Z (about 2 years ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 66
- Watchers: 5
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack EmitAllPlugin
[](https://circleci.com/gh/DrewML/webpack-emit-all-plugin)
[webpack](https://webpack.js.org/), but without the `pack`. The `EmitAllPlugin` will emit all files in the dependency tree to `output.path` as separate files, allowing you to use loaders/plugins without the need to bundle, which can be useful for some specific use-cases.
Inspired by [this tweet](https://twitter.com/thejameskyle/status/894730299845652481).
## Install
```sh
npm install -D webpack-emit-all-plugin
```
## Usage
In your `webpack.config.js`:
```js
const path = require('path');
const EmitAllPlugin = require('webpack-emit-all-plugin');
{
plugins: [
new EmitAllPlugin({
ignorePattern: /node_modules/ // default,
path: path.join(__dirname, 'unbundled-out') // defaults to `output.path`
})
]
}
```