shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

Allow Filtering Files from the Manifest #64

Closed daniel-nagy closed 7 years ago

daniel-nagy commented 7 years ago

I have a bunch of static assets (images, fonts, etc.) and map files that do not need to be included in the manifest file. It would be great to be able filter these out.

new ManifestPlugin({
  ...
  filter: 'foo.bar',
  // or regex
  filter: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/
  // or function
  filter: ({chunk, fileName}) => !fileName.endsWith('.bar')
})
mastilver commented 7 years ago

duplicate of #55