Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CSS source map and compression options are configured wrong #502
I opted for an issue because I'm not sure what it takes to test or what the preferred intent is, but I noticed that the current configuration seems to be the opposite of what is expected.
CSS compression is always on if source maps are enabled. In when the env is
CSS should be uncompressed
Ironically it is intended... but not for long. Sprockets only does (or did) SourceMaps when compression is enabled, because it's at compression time that they do SourceMap generation (though this might have changed, and I think recently I seen something in their source that indicated that, that or I read the source wrong at the time... which can happen sometimes,) so we had to enable compression to do SourceMaps or take over everything, which at the time with such a big release was something I wasn't willing to do.
Luckily, over the last few months of releases, I've slowly added in stuff that will allow me to eventually take over that one last piece of SourceMaps so I can do it myself at a particular time, this should be changing here soon (read: sometime this month,) but for now it was hacky way to get what you wanted without having to create too much surface at once.
Ah, that makes sense. Thanks for the explanation. I was also going to open an issue noting that the sourcemaps that are generated for me are pointing to the wrong sources, but unless you want to look into that now, I figure I'll wait to see if your future changes resolve the issue.