getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.12k stars 925 forks source link

css generated by highlight_theme_css is not minified #2246

Open myrrc opened 1 year ago

myrrc commented 1 year ago

Bug Report

Environment

Debian Linux 11

Zola version: 0.17.2

Expected Behavior

Custom generated CSS would be minified like SASS.

Current Behavior

CSS is not minified

Step to reproduce

highlight_themes_css = [
  { theme = "base16-ocean-dark", filename = "dark.css"}
]

Then look at generated file.

myrrc commented 1 year ago

There is no way to @import generated css files in SASS either as it's evaluated after SASS render.

Keats commented 1 year ago

It's not really a bug as it was never supported.

cyann commented 1 year ago

Side note: I've set purgecss as a post build action for my main CSS, which work great with bulma. I've tried to also use it on the highlight CSS files, but that didn't work.