We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc29455 commit c0f70caCopy full SHA for c0f70ca
lib/BannerPlugin.js
@@ -29,7 +29,7 @@ BannerPlugin.prototype.apply = function(compiler) {
29
compiler.plugin("compilation", function(compilation) {
30
compilation.plugin("optimize-chunk-assets", function(chunks, callback) {
31
chunks.forEach(function(chunk) {
32
- if(options.entryOnly && !chunk.initial) return;
+ if(options.entryOnly && !chunk.isInitial()) return;
33
chunk.files.filter(ModuleFilenameHelpers.matchObject.bind(undefined, options)).forEach(function(file) {
34
compilation.assets[file] = new ConcatSource(banner, "\n", compilation.assets[file]);
35
});
0 commit comments