1
Fork 0

use plain dart-sass

This commit is contained in:
Motiejus Jakštys 2023-12-15 11:51:39 +02:00
parent c89fff0340
commit 57c4a56deb
4 changed files with 7 additions and 5 deletions

View File

@ -12,7 +12,6 @@ SECRET_KEY = 'django-insecure-$e2!=equ(efm0e%f9&t+xjtz0)$*$@pw%rnjdqcl8f@5o5hw!l
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
#ALLOWED_HOSTS = ["100.89.176.6"]
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []
# Application definition # Application definition
@ -99,7 +98,9 @@ STATICFILES_FINDERS = [
STATIC_ROOT = '/tmp/e11mail-static' STATIC_ROOT = '/tmp/e11mail-static'
COMPRESS_PRECOMPILERS = ( COMPRESS_PRECOMPILERS = (
('text/x-scss', 'django_libsass.SassCompiler'), # TODO: --style=compressed + source maps
# https://github.com/django-compressor/django-compressor/issues/438
('text/x-scss', 'sass {infile} {outfile}'),
) )
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

View File

@ -1,3 +1,5 @@
@use 'pure';
@use 'grids-responsive';
/* The line above should remain empty */ /* The line above should remain empty */
/************************/ /************************/

View File

@ -6,8 +6,6 @@
<title>{% block "title" %}e11mail.com{% endblock %}</title> <title>{% block "title" %}e11mail.com{% endblock %}</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
{% compress css %} {% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static "signup/pure.css" %}">
<link rel="stylesheet" type="text/x-scss" href="{% static "signup/grids-responsive.css" %}">
<link rel="stylesheet" type="text/x-scss" href="{% static "signup/style.scss" %}"> <link rel="stylesheet" type="text/x-scss" href="{% static "signup/style.scss" %}">
{% endcompress %} {% endcompress %}
<link rel="icon" href="data:;base64,iVBORw0KGgo="> <link rel="icon" href="data:;base64,iVBORw0KGgo=">

View File

@ -18,7 +18,8 @@
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {inherit system;};
devDeps = with pkgs; [ devDeps = with pkgs; [
python3Packages.django_4 python3Packages.django_4
python3Packages.django-libsass python3Packages.django-compressor
dart-sass
hugo hugo
brotli brotli