Skip to content

Commit e3156d5

Browse files
authored
docs(plugins): add ChunksWebpackPlugin (#6798)
1 parent 04c0df1 commit e3156d5

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/content/plugins/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Webpack has a rich plugin interface. Most of the features within webpack itself
1919
| Name | Description |
2020
| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
2121
| [`BannerPlugin`](/plugins/banner-plugin) | Add a banner to the top of each generated chunk |
22+
| [`ChunksWebpackPlugin`](/plugins/chunks-webpack-plugin/) | Create HTML files with entrypoints and chunks relations to serve your bundles |
2223
| [`CommonsChunkPlugin`](/plugins/commons-chunk-plugin) | Extract common modules shared between chunks |
2324
| [`CompressionWebpackPlugin`](/plugins/compression-webpack-plugin) | Prepare compressed versions of assets to serve them with Content-Encoding |
2425
| [`ContextReplacementPlugin`](/plugins/context-replacement-plugin) | Override the inferred context of a `require` expression |

src/content/plugins/split-chunks-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module.exports = {
147147
};
148148
```
149149

150-
T> You can combine this configuration with the [HtmlWebpackPlugin](/plugins/html-webpack-plugin/). It will inject all the generated vendor chunks for you.
150+
T> You can combine this configuration with the [HtmlWebpackPlugin](/plugins/html-webpack-plugin/) for Single Page Application or [ChunksWebpackPlugin](https://github.com/yoriiis/chunks-webpack-plugin?tab=readme-ov-file#chunkswebpackplugin) for Multiple Page Application. It will inject all the generated vendor chunks for you.
151151

152152
### splitChunks.maxAsyncRequests
153153

src/utilities/fetch-package-readmes.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const loaderGroup = {
3434
const communityPackages = [{
3535
name: 'svg-chunk-webpack-plugin',
3636
contributors: ['yoriiis', 'alexander-akait']
37+
}, {
38+
name: 'chunks-webpack-plugin',
39+
contributors: ['yoriiis', 'alexander-akait']
3740
}];
3841

3942
async function main() {

src/utilities/fetch-package-repos.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const fetch = {
2929
hides: excludedPlugins,
3030
},
3131
'yoriiis/svg-chunk-webpack-plugin',
32+
'yoriiis/chunks-webpack-plugin',
3233
],
3334
};
3435

0 commit comments

Comments
 (0)