Closed Buntelrus closed 1 year ago
You can try to build those files via multiple configuration objects with different plugins supplied.
https://webpack.js.org/configuration/configuration-types/#exporting-multiple-configurations
thanks for the answer. I will try that :)
I'll close this issue now but feel free to reopen it if there is further question.
@momocow how would I get this to work with code splitting? Currently all my chunks get appended with .user.js
and the userscript headers when I only want it for the specified entries. Use case is sharing library code between entry userscripts.
@iamogbz I've created a new issue #41 for discussion. Maybe provide a simplified concrete example for me to better understand your requirements.
I'll reopen this issue since there are some changes in the incoming v3 which can improve the solution of this issue.
:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I have a userscript with pdf.js as a dependency. And for that I need an extra entry for a worker file.
If I build the project, I get 2 files:
But what I want is 1 user script
main.bundle.user.js
and 1 normal bundlepdf.worker.bundle.js
. Is this possible? How can I do this?