Skip to content

Instantly share code, notes, and snippets.

@CWSpear
Created October 10, 2012 00:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CWSpear/3862482 to your computer and use it in GitHub Desktop.
Save CWSpear/3862482 to your computer and use it in GitHub Desktop.
concrete5: Compass + Sass: handle typography.css (moves typography.css up one directory when you compile stylesheets)
# after your other config stuff add:
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "typography.css"
puts "Moving: #{file}" # optional line, just letting you know what's going
FileUtils.mv(file, File.dirname(file) + "/../" + File.basename(file))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment