Skip to content

Allow disabling blazor css scopes without disabling bundling of .razor.css files #46466

Open
@zotanmew

Description

@zotanmew

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

I'm trying to disable CSS isolation (attribute scopes), while still colocating stylesheets with my components. Setting <ScopedCssEnabled>false</ScopedCssEnabled> turns the CSS bundling off altogether, which is not useful in this case.

Describe the solution you'd like

A new MSBuild property that allows disabling just scoping, or one that re-enables bundling when scoping has been disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AspNetCoreRazorSDK, BlazorWebAssemblySDK, dotnet-watchuntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions