drop-chunk-assets-webpack-plugin

0.1.0 • Public • Published

drop-chunk-assets-webpack-plugin

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

Usage

Example:

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')
  ]
};

Readme

Keywords

none

Package Sidebar

Install

npm i drop-chunk-assets-webpack-plugin

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jpommerening