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

css minifi not working #323

Open
TuniDev-HUB opened this issue Aug 7, 2024 · 1 comment
Open

css minifi not working #323

TuniDev-HUB opened this issue Aug 7, 2024 · 1 comment

Comments

@TuniDev-HUB
Copy link

image

Please, can you help me to find where is my mistake (Thank's)
here is my code :
var minCssSetting = new CssSettings()
{
CommentMode = CssComment.Important,
MinifyExpressions = true,
OutputMode = OutputMode.SingleLine,
TermSemicolons = false,
};

pipeline.AddCssBundle("site-Ar.min.css",

"_Css/StyleImport-Ar.css",
"Assets/css/tiny-slider.css",
"Assets/css/nouislider.css",
"Assets/css/theme.css",
"Assets/css/cartzilla-icon.css",
"_Css/StyleCartzilla.css",
"_Css/StyleCartzilla-Menu.css",
"_Css/StyleCartzilla-Divers.css",
"_Css/StyleCartzilla-Product.css",
"_Css/StyleNotification.css",
"_Css/StyleReview.css",
"_Css/StyleDivider.css",
"_Css/StylePage.css",
"_Css/croppie.min.css",
"_Css/StyleFont-Ar.css"

).MinifyCss(minCssSetting);

@TuniDev-HUB
Copy link
Author

Well, I solve it my problem by remove the StyleImport-Ar.css, because it contain

        @charset "UTF-8";
        @import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700&display=swap");

I think there a special case you need to check it,

Keep going, you doing a good job

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

1 participant