css_splitter.rake ��_? V 0wa? V require 'rake' require 'css_splitter' desc 'split css files' namespace :css do task :split do infile = ENV['infile'] || raise("missing infile") outdir = ENV['outdir'] || File.dirname(infile) max_selectors = ENV['max_selectors'] || 4095 CssSplitter.split(infile, outdir, max_selectors) end task :count_selectors do css_file = ENV['css_file'] || raise("missing css file"
![Split CSS files so that there are no more than a given number of selectors in one style sheet. This is a tool to cope with Internet Explorer's limitation of max. 4095 selectors per stylesheet.](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)