Output is compressed multiple times #101

nex3 opened this Issue Mar 28, 2012 · 2 comments


None yet
3 participants

nex3 commented Mar 28, 2012

Currently it's possible for a Sass file, generated in compressed mode, to be re-compressed by Sass. There's a heuristic to avoid that, but it's pretty shaky; if there are any multiline /*! */ comments, re-compression is triggered. Not only is this inefficient, it could potentially cause unexpected and confusing bugs if the generated CSS is something that Sass can't understand as input.

It seems like there should be a more principled way for CssCompressor to avoid conflicting with Sass's compressed mode.


chriseppstein commented Mar 28, 2012

@nex3 That would be a sprocket's issue. They would need to provide a way for a file to be compressed at the same time as it is processed and then to be marked as such. Sass rails must work within the constraints sprockets enforces. I've added the heuristic to speed up the majority of use cases, but I think this bug will need sister bugs in both rails and sprockets in order to achieve this.

cc: @josh @sstephenson @guilleiguaran @wycats


frodsan commented Apr 18, 2013

Closing here because there's been no response in months. @nex3 I'll re-open it if it's still present.

frodsan closed this Apr 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment