Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ Defaults to ::
If you support Internet Explorer version 8 and below, you should
declare javascript files as ``text/javascript``.

``VERBOSE``
.............

``True`` if Pipeline should print some extra information for debugging.

Defaults to ``settings.DEBUG``.

Embedding fonts and images
==========================
Expand Down
1 change: 1 addition & 0 deletions pipeline/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'PIPELINE_URL': _settings.STATIC_URL,

'SHOW_ERRORS_INLINE': _settings.DEBUG,
'VERBOSE': _settings.DEBUG,

'CSS_COMPRESSOR': 'pipeline.compressors.yuglify.YuglifyCompressor',
'JS_COMPRESSOR': 'pipeline.compressors.yuglify.YuglifyCompressor',
Expand Down
2 changes: 1 addition & 1 deletion pipeline/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class PipelineManifest(Manifest):
def __init__(self):
self.packager = Packager()
self.packager = Packager(verbose=settings.VERBOSE)
self.packages = self.collect_packages()
self.finders = get_finders()
self.package_files = []
Expand Down
4 changes: 3 additions & 1 deletion pipeline/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

from django.core.files.base import File

from pipeline.conf import settings


class PipelineMixin(object):
packing = True
Expand All @@ -18,7 +20,7 @@ def post_process(self, paths, dry_run=False, **options):
return

from pipeline.packager import Packager
packager = Packager(storage=self)
packager = Packager(storage=self, verbose=settings.VERBOSE)
for package_name in packager.packages['css']:
package = packager.package_for('css', package_name)
output_file = package.output_filename
Expand Down
6 changes: 3 additions & 3 deletions pipeline/templatetags/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def package_for(self, package_name, package_type):
package = {package_name: package}

packager = {
'js': Packager(css_packages={}, js_packages=package),
'css': Packager(css_packages=package, js_packages={}),
'js': Packager(css_packages={}, js_packages=package, verbose=settings.VERBOSE),
'css': Packager(css_packages=package, js_packages={}, verbose=settings.VERBOSE),
}[package_type]

return packager.package_for(package_type, package_name)
Expand Down Expand Up @@ -97,7 +97,7 @@ def render_compressed_sources(self, package, package_name, package_type):
if settings.PIPELINE_COLLECTOR_ENABLED:
default_collector.collect(self.request)

packager = Packager()
packager = Packager(verbose=settings.VERBOSE)
method = getattr(self, 'render_individual_{0}'.format(package_type))

try:
Expand Down