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

Don't bundle unused Swagger UI ES scripts #4577

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Nov 10, 2023

Swagger UI only needs non-es versions:

<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>

And the es scripts (swagger-ui-es-bundle.js, swagger-ui-es-bundle-core.js) are almost 2MB together and thus unnecessarily bloat the DLL size.

@lahma lahma changed the title Don't bundle unused SwaggerUI ES scripts Don't bundle unused Swagger UI ES scripts Nov 10, 2023
@RicoSuter
Copy link
Owner

Can you do the same for the webapi/legacy pkg?

@lahma
Copy link
Collaborator Author

lahma commented Nov 12, 2023

done

@RicoSuter RicoSuter merged commit 169a135 into RicoSuter:master Nov 13, 2023
1 check passed
lahma added a commit to lahma/NSwag that referenced this pull request Jan 20, 2024
* Don't bundle unused SwaggerUI ES scripts

* also tseak NSwag.AspNet.Owin.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants