Skip to main content

JS minifier for Lektor. Based on rjsmin.

Project description

JSminify

PyPI version

JS minifier for Lektor that automatically minifies javascript files

Uses rjsmin and looks for .js files, minifying them as part of the build process.

Installing

You can install the plugin with Lektor's installer::

lektor plugins add lektor-jsminify

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

[packages]
lektor-jsminify = 0.2

Usage

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

lektor build -f jsminify

When the flag is present, jsminify will take all .js files from asset_sources/js, minifies them and places them in assets/js.

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-jsminify-0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

lektor_jsminify-0.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file lektor-jsminify-0.2.tar.gz.

File metadata

  • Download URL: lektor-jsminify-0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for lektor-jsminify-0.2.tar.gz
Algorithm Hash digest
SHA256 689c25dc96aacde3e31f69a4a499ff3eb44ebda37860732e16090e57c2a046ac
MD5 f6f2bb2d3dab0ce2e26accc284a10f4c
BLAKE2b-256 1a4701b3ce6cc7af45873dae2bfd4df3894e1755cb5d820600c4712bba5cbd43

See more details on using hashes here.

File details

Details for the file lektor_jsminify-0.2-py3-none-any.whl.

File metadata

  • Download URL: lektor_jsminify-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for lektor_jsminify-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf0047dcd1208655b33f619f6ad16874c9716999f34ae4b0b390ebd76d15448
MD5 44ac4d6ca3c133ae408cea3ee2ae46dd
BLAKE2b-256 e417ec3575eb366bd87e1fd0667fd195ae9265248bb7dd66086e18c6c1d402b3

See more details on using hashes here.

Supported by

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