Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Compressor-esque template tag #30

Closed
markfinger opened this issue Jun 25, 2015 · 1 comment
Closed

Compressor-esque template tag #30

markfinger opened this issue Jun 25, 2015 · 1 comment
Milestone

Comments

@markfinger
Copy link
Owner

Need to gut compressor's {% compress %} so that it can pull assets

Rather than relying on compressor's per-file processing, the assets need to be combined so that source maps can be preserved.

CSS assets can be fed directly into webpack

JS assets will probably require some fiddling. There are far too many shitty plugins that rely on an implicit global. Might need to add an endpoint on the build server

This was referenced Jun 25, 2015
@markfinger markfinger added this to the v5.0 milestone Jun 25, 2015
@markfinger
Copy link
Owner Author

Have explored this a bit and got a prototype working, but it feels like it should be handled downstream.

Primary motivation was improved source maps, but it looks like this is possible with compressor.

django-compressor/django-compressor#438
http://roverdotcom.github.io/blog/2014/05/28/javascript-error-reporting-with-source-maps-in-django/
https://github.com/roverdotcom/django-compressor-sourcemaps/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant