jezdez/django_compressor — pull request #157 by flashingpumpkin (2011-11-10 11:34:32+00:00)
Title: Preserves filename when preprocessing and `COMPRESS_ENABLED = False`

Hi.

I've mentioned this at some point.

We're using `compress` a lot with precompilers for `text/coffee-script` and `text/x-scss`. Really handy. *But*, when you're including more than a single file of any mime type, and want to inspect / debug it in a browser's debugger it's a bit painful to have to click through a dozen or so sha1 hashed filenames to find the correct source.

This is a proposal to add the original filename to the hash when `COMPRESS_ENABLED == False` and a preprocessor is used.
The resulting filenames are something like the ones below and make for a much easier navigation.

static/CACHE/js/map.49e86a7be69e.js
static/CACHE/js/search.21961b1dfa31.js

This could be further modified to depend on a setting. Feedback please :)