Skip to main content

Module plugins

Module plugins 

Source
Expand description

§Built-in plugins

Ready-to-use plugins for common static site generation tasks.

  • MinifyPlugin — Minifies HTML files in the site output directory. With the minify feature enabled, also minifies .css and .js assets and walks the site directory recursively.
  • ImageOptiPlugin — Logs image files for optimization (stub for external tooling).
  • DeployPlugin — Logs deployment target after build (stub for CI integration).

Structs§

DeployPluginDeprecated
Deployment plugin stub.
ImageOptiPlugin
Image optimization plugin stub.
MinifyPlugin
Minifies HTML files and (with the minify feature) JS/CSS assets.

Functions§

minify_css
ssg’s own CSS and JavaScript minifiers, re-exported so the whole minification surface lives behind one module.
minify_html
Collapses insignificant whitespace in HTML.
minify_js
ssg’s own CSS and JavaScript minifiers, re-exported so the whole minification surface lives behind one module.