Skip to content

Extend Blazor "insignificant whitespace trimming" into Razor Pages and MVC. #23570

Open
@Bartmax

Description

@Bartmax

Based on Blazor whitespace trimming issue I create this one to track a feature request to extend that functionality to Razor Pages and MVC View (aka .cshtml filetypes)

I know that the motivation behind this improvement on blazor is about diffing the tree (something it doesn't happen on razor/mvc), but it also have other bonuses in regards to performance because the smaller payload and the fact that it looks like actually may be something very low cost since the work will be done by the blazor team, looks like a great fit to add value to the framework as a whole.

Here's one of many example/approaches on how one would implement a solution like that right now to minifying .cshtml files: https://debugandrelease.blogspot.com/2018/11/automatically-minifying-cshtml-files-in.html

as you can see, this requires lots of steps/works and extra dependencies,
joining forces with blazor team I think this could be a very consistent framework-wide feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-allThis issue impacts all the customersarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-razor.languageseverity-nice-to-haveThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions