Use inline CSS compression

pull/1333/head
Piero Toffanin 2023-04-27 15:02:42 -04:00
rodzic ff0d4b5c4f
commit f8410c720d
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -51,7 +51,7 @@
<title>{{title|default:"Login"}} - {{ SETTINGS.app_name }}</title> <title>{{title|default:"Login"}} - {{ SETTINGS.app_name }}</title>
{% compress css %} {% compress css inline %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'app/css/theme.scss' %}" /> <link rel="stylesheet" type="text/x-scss" href="{% static 'app/css/theme.scss' %}" />
{% endcompress %} {% endcompress %}

Wyświetl plik

@ -334,6 +334,7 @@ JWT_AUTH = {
COMPRESS_PRECOMPILERS = ( COMPRESS_PRECOMPILERS = (
('text/x-scss', 'django_libsass.SassCompiler'), ('text/x-scss', 'django_libsass.SassCompiler'),
) )
COMPRESS_ENABLED = True
# Sass # Sass
def theme(color): def theme(color):