Skip to content
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

Compiled css is not minified #58

Open
koljada opened this issue Oct 19, 2022 · 1 comment
Open

Compiled css is not minified #58

koljada opened this issue Oct 19, 2022 · 1 comment

Comments

@koljada
Copy link

koljada commented Oct 19, 2022

I tried to configure it using
pipeline.CompileScssFiles();
or
pipeline.CompileScssFiles(new WebOptimizerScssOptions { MinifyCss = true });.

In my cshtml it is referenced as
<link rel="stylesheet" href="~/css/monitoring.scss" type="text/css" />

It's compiled and served correctly but the content is not minified.

I'm using version 3.0.91

@dustinrowland12
Copy link

dustinrowland12 commented Nov 9, 2022

I'm experiencing a similar issue with a different method.

pipeline.AddScssBundle("/all.css", "someFile.css", "anotherFile.scss", "file3.scss")

The resulting all.css file does not see to be minified. It does appear that pipeline.AddJavaScriptBundle is minifying correctly.

I'm using version 3.0.91 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants