X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/1fd696c3df89d7e0c71ea55dfe55e9d2e8554498..62c6504a2495e2a1d48f7185ab3adb5984916b1c:/prawokultury/settings.d/50-static.py?ds=sidebyside diff --git a/prawokultury/settings.d/50-static.py b/prawokultury/settings.d/50-static.py index e9bc907..4a47f9f 100644 --- a/prawokultury/settings.d/50-static.py +++ b/prawokultury/settings.d/50-static.py @@ -9,39 +9,44 @@ STATICFILES_FINDERS = ( # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) -STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage' -PIPELINE_CSS_COMPRESSOR = None -PIPELINE_JS_COMPRESSOR = None -PIPELINE_CSS = { - 'base': { - 'source_filenames': ( - 'css/base.scss', - 'css/layout.scss', - 'css/header.scss', - 'css/menu.scss', - 'css/search.scss', - 'css/sidebar.scss', - 'css/promobox.scss', - 'css/entry.scss', - 'css/footer.scss', - 'css/prevnext.scss', - 'css/forms.scss', - 'events/events.scss', - ), - 'output_filename': 'compressed/base.css', +STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage' + +PIPELINE = { + 'CSS_COMPRESSOR': None, + 'JS_COMPRESSOR': None, + 'STYLESHEETS': { + 'base': { + 'source_filenames': ( + 'css/base.scss', + 'css/layout.scss', + 'css/header.scss', + 'css/menu.scss', + 'css/search.scss', + 'css/sidebar.scss', + 'css/promobox.scss', + 'css/entry.scss', + 'css/footer.scss', + 'css/prevnext.scss', + 'css/forms.scss', + 'events/events.scss', + + 'contrib/lightbox/css/lightbox.css', + ), + 'output_filename': 'compressed/base.css', + }, }, -} -PIPELINE_JS = { - 'base': { - 'source_filenames': ( - 'js/promobox.js', - ), - 'output_filename': 'compressed/base.js', + 'JAVASCRIPT': { + 'base': { + 'source_filenames': ( + 'js/promobox.js', + 'js/workshop_form.js', + 'js/optional_fields.js', + 'contrib/lightbox/js/lightbox.min.js', + ), + 'output_filename': 'compressed/base.js', + }, }, + 'COMPILERS': ( + 'pipeline.compilers.sass.SASSCompiler', + ), } - -PIPELINE_COMPILERS = ( - 'pipeline.compilers.sass.SASSCompiler', -) - -PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'