Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ cssutils = [
closure = [
"closure>=20191111",
]
slimit = [
"slimit>=0.8.1",
slimit3k = [
"slimit3k>=0.9.0",
]
ply = [
"ply>=3.11",
Expand Down
6 changes: 5 additions & 1 deletion src/webassets/filter/slimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
class Slimit(Filter):
"""Minifies JS.

Requires the ``slimit`` package (https://github.com/rspivak/slimit),
Requires the ``slimit3k`` package (https://github.com/tetframework/slimit3k),
which is a JavaScript minifier written in Python. It compiles JavaScript
into more compact code so that it downloads and runs faster.

It offers mangle and mangle_toplevel options through SLIMIT_MANGLE and SLIMIT_MANGLE_TOPLEVEL

Note that ``slimit3k`` is a fork of the original, but no longer unmaintained
``slimit`` package (https://github.com/rspivak/slimit) which no longer
builds on Python 3.14.
"""

name = 'slimit'
Expand Down
Loading