Skip to content

Instantly share code, notes, and snippets.

@franksmule
Created December 4, 2013 12:04
Show Gist options
  • Save franksmule/7786463 to your computer and use it in GitHub Desktop.
Save franksmule/7786463 to your computer and use it in GitHub Desktop.
Config file for Cake with Prepros, change the css_dir relativeness to what suites. Also change output filename.
css_dir = "../../www/app/View/Themed/Admin/webroot/css/"
sass_dir = "/"
output_style = :compressed
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file)
puts "Moving: #{file}"
FileUtils.mv(file,File.dirname(file) + "/admin.min.css")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment