Skip to content

Release Razor views/pages should be minified #8236

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

Closed
lcsondes opened this issue Mar 6, 2019 · 3 comments
Closed

Release Razor views/pages should be minified #8236

lcsondes opened this issue Mar 6, 2019 · 3 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@lcsondes
Copy link

lcsondes commented Mar 6, 2019

Is your feature request related to a problem? Please describe.

When publishing your application the Razor views should be minified as part of the build.

Describe the solution you'd like

Build my well-indented code, get output with no extra whitespace.

Describe alternatives you've considered

Third-party kludges exist but they tend to do heuristic parsing of cshtmls with regexes or IndexOf. This should be built into the system itself which by definition understands cshtml perfectly.

Additional context

aspnet/Razor#423 is related but it seems to have been closed with no final comment when the project was archived.

@muratg muratg added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 6, 2019
@mkArtakMSFT
Copy link
Contributor

Thanks for contacting us, @lcsondes.
This is not an area we have immediate plans to invest in.

@effyteva
Copy link

effyteva commented Nov 8, 2019

@mkArtakMSFT Could this be scheduled for a future version perhaps?

@mkArtakMSFT
Copy link
Contributor

Not really, @effyteva.
We usually prioritize asks based on community asks. So far, we haven't heard much feedback from the community that this is something very important. That said, we don't want to add work on our backlog, for which we don't see any mid-term need.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

4 participants