Skip to content

Instantly share code, notes, and snippets.

@csharpfritz
Created February 22, 2024 15:38
Show Gist options
  • Save csharpfritz/e3c3c40fb71574c9334fb300c19151b6 to your computer and use it in GitHub Desktop.
Save csharpfritz/e3c3c40fb71574c9334fb300c19151b6 to your computer and use it in GitHub Desktop.
WebOptimizer configuraiton for C# in the Cards website
builder.Services.AddWebOptimizer(pipeline => {
pipeline.AddCssBundle("/css/bundle.css", new NUglify.Css.CssSettings
{
CommentMode = NUglify.Css.CssComment.None,
}, "app.css", "css/bootstrap.css", "style.css",
"css/plugins.css", "css/colors.css", "css/responsive.css");
pipeline.MinifyJsFiles("/js/jqueryCustom.js");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment