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:32:25 EEST 2023
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
00144e1601
commit
5338b1ab02
8 changed files with 3 additions and 15 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
htmlmin
|
||||||
rcssmin
|
rcssmin
|
||||||
mistune
|
mistune
|
||||||
typing
|
typing
|
||||||
|
|
|
@ -24,7 +24,7 @@ from threading import Thread
|
||||||
from timeit import default_timer as code_timer
|
from timeit import default_timer as code_timer
|
||||||
from warnings import filterwarnings as filter_warnings
|
from warnings import filterwarnings as filter_warnings
|
||||||
|
|
||||||
import minify_html_onepass
|
import htmlmin
|
||||||
import mistune
|
import mistune
|
||||||
import mistune.core
|
import mistune.core
|
||||||
import mistune.inline_parser
|
import mistune.inline_parser
|
||||||
|
@ -572,8 +572,7 @@ def process_css_file(file: str, out: str) -> None:
|
||||||
|
|
||||||
|
|
||||||
def min_html(code: str) -> str:
|
def min_html(code: str) -> str:
|
||||||
return minify_html_onepass.minify(code, True)
|
return htmlmin.minify(code, True, True, True, True, True, True, True)
|
||||||
# return htmlmin.minify(code, True, True, True, True, True, True, True)
|
|
||||||
|
|
||||||
|
|
||||||
# markdown
|
# markdown
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
original package located at https://pypi.org/project/minify-html-onepass
|
|
||||||
using this bc this package doesnt build in netlify ci
|
|
|
@ -1,5 +0,0 @@
|
||||||
from .minify_html_onepass import *
|
|
||||||
|
|
||||||
__doc__ = minify_html_onepass.__doc__
|
|
||||||
if hasattr(minify_html_onepass, "__all__"):
|
|
||||||
__all__ = minify_html_onepass.__all__
|
|
|
@ -1,5 +0,0 @@
|
||||||
def minify(
|
|
||||||
code: str,
|
|
||||||
minify_css: bool = False,
|
|
||||||
minify_js: bool = False,
|
|
||||||
) -> str: ...
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue