Skip to content

Instantly share code, notes, and snippets.

@kisenka
Created October 12, 2016 22:05
Show Gist options
  • Save kisenka/885b6af2aea821956724ba184ff870dd to your computer and use it in GitHub Desktop.
Save kisenka/885b6af2aea821956724ba184ff870dd to your computer and use it in GitHub Desktop.
Prevent Webpack to emit asset in compilation.assets
compiler.plugin('compilation', function(compilation) {
compilation.plugin('chunk-asset', function (chunk, filename) {
// chunk.name can be useful, usually it's name of entrypoint
delete this.assets[filename];
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment