Skip to main content

HTML minifier for Lektor. Based on htmlmin.

Project description

Pypi

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.

Project details


Download files

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

Source Distribution

lektor-htmlmin-1.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lektor_htmlmin-1.0.3-py3.7.egg (4.3 kB view details)

Uploaded Egg

File details

Details for the file lektor-htmlmin-1.0.3.tar.gz.

File metadata

  • Download URL: lektor-htmlmin-1.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for lektor-htmlmin-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3771b6ffcfaf833ff6ea639dcd7b278c0a658bb5057be8fad6a595b50368c950
MD5 b0608f9d74ba2822baae6778f0f7cd8b
BLAKE2b-256 0e8eaf060870c2b4078b59cb6aeb2e4ff2c965d8f2ede4d177a86b83ee3f6080

See more details on using hashes here.

File details

Details for the file lektor_htmlmin-1.0.3-py3.7.egg.

File metadata

  • Download URL: lektor_htmlmin-1.0.3-py3.7.egg
  • Upload date:
  • Size: 4.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for lektor_htmlmin-1.0.3-py3.7.egg
Algorithm Hash digest
SHA256 9f2eed62aa2a9d40ce67c31f6664bd764aeff7da4bad751987ae76c94cc81469
MD5 3a6062d89fc081da0371e2805ea6b53b
BLAKE2b-256 1a497e2ee926e747bd126d8ef3ccb739186755f1ce000c4beb99507aac9e421f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page