Skip to content

minify

Reduce generated HTML, CSS, and JavaScript size. Native support was added in Zensical 0.0.58.

Reduce transfer size for a large documentation site; minify selected custom styles.

Try it

Open the minify example.

HTML

View the generated page source to inspect minified HTML.

CSS

Open the linked CSS file to see the minified version of the spaced source fixture.

CSS result

The 88-byte source fixture:

/* A deliberately spaced fixture. */
.example {
    color: #336699;
    margin:  0px;
}

The 29-byte generated file:

.example{color:#369;margin:0}
Source and configuration

The configuration and example Markdown are available in the repository. Other files in that directory supply the example’s fixtures.

Zensical compatibility and settings · Plugin documentation