Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

DllPlugin: When processing multiple chunks, does the path option must have a string template? #18199

Closed
cwj0417 opened this issue Mar 15, 2024 · 0 comments

Comments

@cwj0417
Copy link
Contributor

cwj0417 commented Mar 15, 2024

When generating Dll files, It seems like every chunk should emit a manifest file.

If we not config [name] (or [hash]) placeholder in path option, all chunks was written in a single file and leads to undesirable result.

If what I described above is correct, I considered we could add some explanations to document and print warning on console. and can I send a PR improve this?

To reproduce: change path option in examples/dll/webpack.config.js to path.join(__dirname, "dist", "manifest.json"), and run node build.js for several times, manifest.json is occasionally written to an illegal json.

(I don' t think this is a bug, so I raise this issue with "other" template)

@webpack webpack locked and limited conversation to collaborators Mar 15, 2024
@alexander-akait alexander-akait converted this issue into discussion #18200 Mar 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant