Fix minification on chrome

This commit is contained in:
Gabriel Augendre 2020-12-25 14:50:51 +01:00
parent b94d05902b
commit 0949dc7c1d
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
3 changed files with 15 additions and 15 deletions

View file

@ -3,14 +3,14 @@ from django_assets import Bundle, register
public_no_code = Bundle(
"newcss.css",
"public.css",
filters="cssmin",
filters="rcssmin",
output="public_bundled.css",
)
public_with_code = Bundle(
"newcss.css",
"codehilite.css",
"public.css",
filters="cssmin",
filters="rcssmin",
output="public_code_bundled.css",
)
register("public_no_code", public_no_code)

24
poetry.lock generated
View file

@ -82,14 +82,6 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
[package.extras]
toml = ["toml"]
[[package]]
name = "cssmin"
version = "0.2.0"
description = "A Python port of the YUI CSS compression algorithm."
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "distlib"
version = "0.3.1"
@ -398,6 +390,14 @@ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "rcssmin"
version = "1.0.6"
description = "CSS Minifier"
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "requests"
version = "2.25.0"
@ -516,7 +516,7 @@ multidict = ">=4.0"
[metadata]
lock-version = "1.1"
python-versions = "^3.8"
content-hash = "29b49600a0a724f59d04d475a305c4f90541753ac0c0896a976feb096bc1b173"
content-hash = "41e6bc3a3d9db68d1af27d90163e860bf821ffc86bf50a145fcad1763bb4fc1a"
[metadata.files]
appdirs = [
@ -587,9 +587,6 @@ coverage = [
{file = "coverage-5.3-cp39-cp39-win_amd64.whl", hash = "sha256:47a11bdbd8ada9b7ee628596f9d97fbd3851bd9999d398e9436bd67376dbece7"},
{file = "coverage-5.3.tar.gz", hash = "sha256:280baa8ec489c4f542f8940f9c4c2181f0306a8ee1a54eceba071a449fb870a0"},
]
cssmin = [
{file = "cssmin-0.2.0.tar.gz", hash = "sha256:e012f0cc8401efcf2620332339011564738ae32be8c84b2e43ce8beaec1067b6"},
]
distlib = [
{file = "distlib-0.3.1-py2.py3-none-any.whl", hash = "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb"},
{file = "distlib-0.3.1.zip", hash = "sha256:edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"},
@ -772,6 +769,9 @@ pyyaml = [
{file = "PyYAML-5.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee"},
{file = "PyYAML-5.3.1.tar.gz", hash = "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"},
]
rcssmin = [
{file = "rcssmin-1.0.6.tar.gz", hash = "sha256:ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270"},
]
requests = [
{file = "requests-2.25.0-py2.py3-none-any.whl", hash = "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998"},
{file = "requests-2.25.0.tar.gz", hash = "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8"},

View file

@ -32,7 +32,7 @@ django-cleanup = "^5.0"
requests = "^2.24"
html2text = "^2020.1.16"
django-assets = "^2.0"
cssmin = "^0.2.0"
rcssmin = "^1.0.6"
[tool.poetry.dev-dependencies]
pre-commit = "^2.7"