Created
October 10, 2012 00:52
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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