File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ contributors:
5
5
- simon04
6
6
- byzyk
7
7
- chenxsan
8
+ - snitin315
8
9
related :
9
10
- title : banner-plugin-hashing test
10
11
url : https://github.com/webpack/webpack/blob/main/test/configCases/plugins/banner-plugin-hashing/webpack.config.js
@@ -31,6 +32,7 @@ new webpack.BannerPlugin(options);
31
32
include: string | RegExp | [string, RegExp], // Include all modules matching any of these conditions.
32
33
exclude: string | RegExp | [string, RegExp], // Exclude all modules matching any of these conditions.
33
34
footer?: boolean, // if true, the banner will be placed at the end of the compilation
35
+ stage?: number, // the stage of the compilation in which the banner should be injected
34
36
}
35
37
` ` `
36
38
@@ -50,6 +52,13 @@ new webpack.BannerPlugin({
50
52
return ` yourVariable: ${yourVariable } ` ;
51
53
},
52
54
});
55
+
56
+ // It will add the banner message after minimizers and any asset manipulation
57
+ new webpack .BannerPlugin ({
58
+ raw: true ,
59
+ banner: ' /* banner is a string */' ,
60
+ stage: webpack .Compilation .PROCESS_ASSETS_STAGE_REPORT ,
61
+ });
53
62
` ` `
54
63
55
64
## Placeholders
You can’t perform that action at this time.
0 commit comments