From cc996ae35681bd268dce1284aada31a3ce22bfde Mon Sep 17 00:00:00 2001 From: Ilkay Ilknur Date: Mon, 4 Jan 2021 22:21:47 +0300 Subject: [PATCH] exclude main.css from bundle. --- .../MyProjectNameBundleContributor.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBundleContributor.cs b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBundleContributor.cs index c4a948493f..e7a231c2fc 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBundleContributor.cs +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBundleContributor.cs @@ -6,12 +6,11 @@ namespace MyCompanyName.MyProjectName.Blazor { public void AddScripts(BundleContext context) { - } public void AddStyles(BundleContext context) { - context.Add("main.css"); + context.Add("main.css", true); } } -} +} \ No newline at end of file