Where to put the gem script files for the compass (css_splitter)

first time working with gem / ruby ​​files. need a little help here.

We basically have an asp.net application that uses SASS + COMPASS.

To determine the css file size limit, we wanted to use the css_splitter script (css_splitter.rake and css_splitter.rb): https://gist.github.com/1131536

Basically, after compiling the compass, the splitter should insert and split the generated css file into 2 or more.

What am I tired of:

  • The sass configuration file is located under: D: \ myapp \ mainsite \ sass \ config.rb
  • I put css_splitter.rake and css_splitter.rb in the folder above.
  • modify config.rb refer to "css_splitter.rb" as follows:
require 'susy'
require 'css_splitter'

http_path = "/"
css_dir = "../stylesheets"
sass_dir = ""
images_dir = "../img"
javascripts_dir = "../Scripts"
sass_options = {:full_exception => true }
output_style = :compressed
line_comments = false

on_stylesheet_saved do |path|
  CssSplitter.split(path) unless path[/\d+$/]
end
  • , : LoadError 36 D: - css_splitter

  • , D:\myapp\sass\ruby ​​\ lib\ruby ​​\ site_ruby\1.8, css_splitter.rake css_splitter.rb , .

- ? .

0
1

. - CssSplitter config.rb .

on_stylesheet_saved. - : https://gist.github.com/3559165

, . Screen, Screen_2, Screen_3... .. . , !

+4

All Articles