mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun Oct 8 01:29:07 EEST 2023
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
6651d9e103
commit
00144e1601
8 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
|||
htmlmin
|
||||
rcssmin
|
||||
mistune
|
||||
typing
|
||||
|
|
|
@ -24,7 +24,7 @@ from threading import Thread
|
|||
from timeit import default_timer as code_timer
|
||||
from warnings import filterwarnings as filter_warnings
|
||||
|
||||
import htmlmin # type: ignore
|
||||
import minify_html_onepass
|
||||
import mistune
|
||||
import mistune.core
|
||||
import mistune.inline_parser
|
||||
|
@ -572,7 +572,8 @@ def process_css_file(file: str, out: str) -> None:
|
|||
|
||||
|
||||
def min_html(code: str) -> str:
|
||||
return htmlmin.minify(code, True, True, True, True, True, True, True)
|
||||
return minify_html_onepass.minify(code, True)
|
||||
# return htmlmin.minify(code, True, True, True, True, True, True, True)
|
||||
|
||||
|
||||
# markdown
|
||||
|
|
2
scripts/minify_html_onepass/README
Normal file
2
scripts/minify_html_onepass/README
Normal file
|
@ -0,0 +1,2 @@
|
|||
original package located at https://pypi.org/project/minify-html-onepass
|
||||
using this bc this package doesnt build in netlify ci
|
5
scripts/minify_html_onepass/__init__.py
Normal file
5
scripts/minify_html_onepass/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from .minify_html_onepass import *
|
||||
|
||||
__doc__ = minify_html_onepass.__doc__
|
||||
if hasattr(minify_html_onepass, "__all__"):
|
||||
__all__ = minify_html_onepass.__all__
|
5
scripts/minify_html_onepass/__init__.pyi
Normal file
5
scripts/minify_html_onepass/__init__.pyi
Normal file
|
@ -0,0 +1,5 @@
|
|||
def minify(
|
||||
code: str,
|
||||
minify_css: bool = False,
|
||||
minify_js: bool = False,
|
||||
) -> str: ...
|
BIN
scripts/minify_html_onepass/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
scripts/minify_html_onepass/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
scripts/minify_html_onepass/minify_html_onepass.cpython-311-x86_64-linux-gnu.so
Executable file
BIN
scripts/minify_html_onepass/minify_html_onepass.cpython-311-x86_64-linux-gnu.so
Executable file
Binary file not shown.
0
scripts/minify_html_onepass/py.typed
Normal file
0
scripts/minify_html_onepass/py.typed
Normal file
Loading…
Add table
Reference in a new issue