Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
084d82f8
Commit
084d82f8
authored
Jun 02, 2014
by
Zachary Kazanski
Committed by
Timothée Peignier
Jul 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mo-op compressors, and updated documentation
parent
eb2740f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
.gitignore
+2
-0
AUTHORS
+1
-0
docs/compressors.rst
+11
-0
pipeline/compressors/__init__.py
+8
-0
No files found.
.gitignore
View file @
084d82f8
...
...
@@ -3,6 +3,7 @@
:2e_*
*.tmproj
.*.swp
*.swo
build
dist
MANIFEST
...
...
@@ -18,3 +19,4 @@ tests/assets/js/dummy.js
.venv
.project
.pydevproject
.ropeproject
AUTHORS
View file @
084d82f8
...
...
@@ -78,4 +78,5 @@ or just made Pipeline more awesome.
* Trey Smith <trey.smith@nasa.gov>
* Venelin Stoykov <venelin@magicsolutions.bg>
* Victor Shnayder <victor@mitx.mit.edu>
* Zachary Kazanski <kazanski.zachary@gmail.com>
* Zenobius Jiricek <zenobius.jiricek@gmail.com>
docs/compressors.rst
View file @
084d82f8
...
...
@@ -221,6 +221,17 @@ command to compress stylesheets. To use it, add this to your ``PIPELINE_CSS_COMP
Default to ``''``
No-Op Compressors
=================
The No-Op compressor don't perform any operation, when used, only concatenation occurs.
This is useful for debugging faulty concatenation due to poorly written javascript and other errors.
To use it, add this to your settings ::
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.NoopCompressor'
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.NoopCompressor'
Write your own compressor class
===============================
...
...
pipeline/compressors/__init__.py
View file @
084d82f8
...
...
@@ -238,3 +238,11 @@ class SubProcessCompressor(CompressorBase):
elif
self
.
verbose
:
print
(
stderr
)
return
force_text
(
stdout
)
class
NoopCompressor
(
CompressorBase
):
def
compress_js
(
self
,
js
):
return
js
def
compress_css
(
self
,
css
):
return
css
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment