X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/03fc465e6ac5335bb636ae57e8fc2218760f8647..c32ea85e72f0c061117256319580f935b9419364:/src/redakcja/settings/__init__.py diff --git a/src/redakcja/settings/__init__.py b/src/redakcja/settings/__init__.py index bab79380..bdcb8a21 100644 --- a/src/redakcja/settings/__init__.py +++ b/src/redakcja/settings/__init__.py @@ -141,11 +141,14 @@ STATICFILES_FINDERS = ( STATICFILES_STORAGE = 'pipeline.storage.PipelineManifestStorage' PIPELINE = { - 'CSS_COMPRESSOR': None, - 'JS_COMPRESSOR': None, - 'COMPILERS': ( - 'libsasscompiler.LibSassCompiler', - ), + 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor', + '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', # CSS and JS files to compress 'STYLESHEETS': { @@ -310,6 +313,8 @@ LANGUAGES = [ ] +USE_TZ = True + TEST_INTEGRATION = False