Skip to content

Instantly share code, notes, and snippets.

@ErickMwazonga
Last active January 14, 2018 20:15
Show Gist options
  • Save ErickMwazonga/00a3f147e56ba76a7fcdb138a641a7e7 to your computer and use it in GitHub Desktop.
Save ErickMwazonga/00a3f147e56ba76a7fcdb138a641a7e7 to your computer and use it in GitHub Desktop.
django-pipeline
# Pipeline
# PIPELINE_ENABLED = True
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.CachedFileFinder',
'pipeline.finders.PipelineFinder',
)
PIPELINE = {
'CSS_COMPRESSOR':'pipeline.compressors.yuglify.YuglifyCompressor',
'CSSMIN_BINARY': 'yuglify',
'JS_COMPRESSOR': 'pipeline.compressors.yuglify.YuglifyCompressor',
'STYLESHEETS': {
'ecoke': {
'source_filenames': (
'ecoke/static/ecoke/css/auth.css',
'ecoke/static/ecoke/css/bootstrap.css',
'ecoke/static/ecoke/css/bootstrap.united.min.css',
'ecoke/static/ecoke/css/style.css'
),
'output_filename': 'ecoke/static/ecoke/css/main.css',
'extra_context': {
'media': 'screen,projection',
},
'variant': 'datauri', # Compress images and fonts
},
},
'JAVASCRIPT': {
'ecoke': {
'source_filenames': (
'ecoke/static/ecoke/js/alert_auto_dismiss.js',
'ecoke/static/ecoke/js/bootstrap.js',
'ecoke/static/ecoke/js/jquery.formset.js',
'ecoke/static/ecoke/js/jquery.js',
'ecoke/static/ecoke/js/modal.js',
),
'output_filename': 'ecoke/static/ecoke/js/main.js',
}
},
}
# PIPELINE['COMPILERS'] = (
# 'pipeline.compilers.coffee.CoffeeScriptCompiler',
# 'pipeline.compilers.stylus.StylusCompiler',
# 'pipeline.compilers.less.LessCompiler',
# )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment