Compile scss files with django compressor

This commit is contained in:
Jens Kadenbach 2019-09-12 12:56:37 +02:00
parent d372cd9bf2
commit 2d5365d2a8
7 changed files with 9 additions and 17 deletions

View file

@ -265,5 +265,8 @@ SOCIALACCOUNT_ADAPTER = "schickmacher.users.adapters.SocialAccountAdapter"
# https://django-compressor.readthedocs.io/en/latest/quickstart/#installation
INSTALLED_APPS += ["compressor"]
STATICFILES_FINDERS += ["compressor.finders.CompressorFinder"]
COMPRESS_PRECOMPILERS = (
('text/x-scss', 'sassc {infile} {outfile}'),
)
# Your stuff...
# ------------------------------------------------------------------------------