Created
October 12, 2016 22:05
-
-
Save kisenka/885b6af2aea821956724ba184ff870dd to your computer and use it in GitHub Desktop.
Prevent Webpack to emit asset in compilation.assets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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