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] Minify output #10908

Open
lonix1 opened this issue Sep 20, 2024 · 0 comments
Open

[Feature] Minify output #10908

lonix1 opened this issue Sep 20, 2024 · 0 comments
Labels
area-compiler Umbrella for all compiler issues feature request Large improvement request
Milestone

Comments

@lonix1
Copy link

lonix1 commented Sep 20, 2024

It would be very helpful if the razor compiler would produce minified output.

The simplest approach would be to

  • remove whitespace between elements (e.g. convert double spaces to single space, trim trailing/leading spaces)
  • remove whitespace within attributes (e.g. class)

A full-featured minifier can do much more than that - but I propose that the basics above would be good enough.

@phil-allen-msft phil-allen-msft added feature request Large improvement request area-compiler Umbrella for all compiler issues labels Sep 24, 2024
@phil-allen-msft phil-allen-msft added this to the Backlog milestone Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-compiler Umbrella for all compiler issues feature request Large improvement request
Projects
None yet
Development

No branches or pull requests

2 participants