Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

HTML minifier for Lektor. Based on htmlmin.

Project Description

HTML minifier for Lektor that automatically minifies generated .html files.

Uses htmlmin and looks for .html files, minifying them as part of the build process.

Installing

You can install the plugin with Lektor’s installer:

lektor plugins add lektor-htmlmin

Or by hand, adding the plugin to the packages section in your lektorproject file:

[packages]
lektor-htmlmin = 1.0

Usage

To enable minification, pass the htmlmin flag when starting the development server or when running a build:

lektor build -O my_build_folder -f htmlmin

When the flag is present, htmlmin will overwrite all HTML files in the output directory with their minified counterparts.

Note: The htmlmin plugin currently minifies every file in the project after a build. Not just files that have been changed. This should have no ill effects, but might increase build times if there are many files to minify.

Release History

Release History

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0

History Node

0.3

History Node

0.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lektor_htmlmin-1.0.2-py2-none-any.whl (4.5 kB) Copy SHA256 Checksum SHA256 py2 Wheel Aug 19, 2017
lektor-htmlmin-1.0.2.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting