Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: add chunksSortMode for HtmlRspackPlugin #8533

Closed
LiuKanShanKanLiu opened this issue Nov 26, 2024 · 0 comments · Fixed by #8585
Closed

[Feature]: add chunksSortMode for HtmlRspackPlugin #8533

LiuKanShanKanLiu opened this issue Nov 26, 2024 · 0 comments · Fixed by #8585
Labels
feat New feature or request pending triage The issue/PR is currently untouched.

Comments

@LiuKanShanKanLiu
Copy link

What problem does this feature solve?

Currently, chunks in my project have a certain dependency order,
I used to use webpack's html-webpack-plugin in webpack , that works fine

What does the proposed API of configuration look like?

new rspack.HtmlRspackPlugin({
chunks: [
// "js/crmPackages",
// "js/crmCommon",
"js/common",
"js/main",
// "js/email-config",
"js/worker"
// nodeNev === "development" ? "worker" : "/page/worker"
],
template: "./src/viewsHtml/admin/home/index.html",
filename: "viewsHtml/admin/home/index.html",
inject: true,
chunksSortMode: "manual",})

@LiuKanShanKanLiu LiuKanShanKanLiu added feat New feature or request pending triage The issue/PR is currently untouched. labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request pending triage The issue/PR is currently untouched.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant