X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7d8acded4a58d423035c5759f6dee9a34396959..8a3885e1467e4c441721eaae608755a9fd10b33f:/src/wolnelektury/settings/static.py diff --git a/src/wolnelektury/settings/static.py b/src/wolnelektury/settings/static.py index b83691b24..505d13916 100644 --- a/src/wolnelektury/settings/static.py +++ b/src/wolnelektury/settings/static.py @@ -134,17 +134,24 @@ PIPELINE = { 'output_filename': 'js/widget.min.js', }, }, - 'CSS_COMPRESSOR': None, 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor', - 'COMPILERS': ( - 'libsasscompiler.LibSassCompiler', - ) + 'COMPILERS': ('pipeline.compilers.sass.SASSCompiler',), + 'SASS_BINARY': '/opt/dart-sass/sass', + 'SASS_ARGUMENTS': '--embed-source-map --embed-sources', + # Compress CSSwith a second run of dart-sass. + 'CSS_COMPRESSOR': 'pipeline.compressors.cssmin.CSSMinCompressor', + 'CSSMIN_BINARY': '/opt/dart-sass/sass', + 'CSSMIN_ARGUMENTS': '--stdin --style=compressed --no-source-map', } -STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage' - -# PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss' -# PIPELINE_PYSCSS_ARGUMENTS = '' +STORAGES = { + 'default': { + 'BACKEND': 'django.core.files.storage.FileSystemStorage' + }, + 'staticfiles': { + 'BACKEND': 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage' + }, +} STATICFILES_FINDERS = [