- Breaking changes!
- The
CssSplitter::SprocketsEngine
is now registered as a bundle_processor to avoid issues with sprockets directives #29 .split2
extension is no longer necessary/supported, now we rely on_splitN
at the end of the filename- Now you need to use the
require
rather than theinclude
directive in the split stylesheet - Prohibition against using
require_tree .
andrequire_self
directives no longer applies - Better tests
- Thanks a lot to @Umofomia
- loosen dependency on
rails
(depend onsprockets
instead), to make gem compatible to other frameworks likemiddleman
- loosen dependency to make it compatible with rails 4
- Added license info ("MIT") to gemspec
- [Removal] Removed unused
Splitter#split
method - [Bugfix] Fixed little bug in
Splitter#count_selectors
that was yielding wrong results - [Bugfix] Removed unnecessary files in
app/
which were causing #13 and #17
- [Improvement] Made the SprocketEngine addition an initializer, so it will work even when
initialize_on_precompile
isn't set - [Bugfix] Removed unnecessary charset extraction from
Splitter#count_selectors
method, which had caused the first rule of the stylesheet to be ignored. - [Bugfix] Fixed/refactored charset extraction, so that it doesn't overwrite the first rule of the stylesheet anymore.
- [Bugfix] Fixed
Splitter#strip_comments
method, so it doesn't mess with protocol agnostic URLs (e.g.url(//assets.myserver.com/asset.png)
) anymore and only strips valid CSS comments #5
Initial commit