Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jpommerening/drop-chunk-assets-webpack-plugin

Drop chunk assets when all you need is file-loader output
https://github.com/jpommerening/drop-chunk-assets-webpack-plugin

Last synced: 24 days ago
JSON representation

Drop chunk assets when all you need is file-loader output

Awesome Lists containing this project

README

        

# drop-chunk-assets-webpack-plugin

> Drop the generated bundle if all you're interested in is (for example) file-loader output

## Usage

Example:

```js
const DropChunkAssetsPlugin = require( 'drop-chunk-assets-webpack-plugin' );

module.exports = {
entry: {
main: 'file-loader!img-loader!./cat.jpeg'
},
output: {
filename: '[name].js'
},
plugins: [
new DropChunkAssetsPlugin('main')
]
};
```