faassen / bowerstatic

Serve Bower-managed static resources using WSGI
BSD 3-Clause "New" or "Revised" License
49 stars 17 forks source link

first attempt for minified versions #44

Open mrijken opened 9 years ago

mrijken commented 9 years ago

When a minified version of a resource exists (in same path, just with '.min' just in front of the extension) , that resource is added to the collection and it will be used by the injector in stead of the original resource.

See issue #33

faassen commented 9 years ago

It's a neat experiment, but I won't be merging this one; I think it's not general enough to be part of BowerStatic. I'll only consider accepting a patch that makes behavior like this pluggable, not the behavior itself.

We need to discuss minification (and bundling) strategies on the issue; we need to first investigate what options there exist for the person creating a bower package - a grunt plugin or whatever. I'll go back to issue #33 for that.