Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use minify_html instead of htmlmin #195

Draft
wants to merge 1 commit into
base: release_4.1.1
Choose a base branch
from
Draft
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
7 changes: 2 additions & 5 deletions behavex/outputs/report_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from collections import OrderedDict

import csscompressor
import htmlmin
import minify_html

from behavex.conf_mgr import get_env
from behavex.global_vars import global_vars
Expand Down Expand Up @@ -73,10 +73,7 @@ def _create_files_report(content_to_file):
path_file = os.path.join(get_env('OUTPUT'), 'outputs', name_file)
_create_manifest('', name_file)
try:
content = htmlmin.minify(
input=content,
pre_tags=(u'pre', u'textarea'),
)
content = minify_html.minify(content)
# pylint: disable= W0703
except Exception as ex:
print(ex)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"behavex-images",
"jinja2",
"configobj",
"htmlmin",
"minify-html",
"csscompressor"
]
# Add dynamic field to handle entry points
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'behavex-images',
'jinja2',
'configobj',
'htmlmin',
'minify-html',
'csscompressor'
],
classifiers=[
Expand Down