Last active
December 21, 2015 09:59
-
-
Save xtfer/6289172 to your computer and use it in GitHub Desktop.
Place at the end of your config.rb file, to move generated CSS files into new locations. Based on http://css-tricks.com/compass-compiling-and-wordpress-themes/
This file contains 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
require 'fileutils' | |
on_stylesheet_saved do |file| | |
if File.exists?(file) && File.basename(file) == "nsw_styles.css" | |
puts "Moving: #{file}" | |
FileUtils.mv(file, File.dirname(file) + "/../agov_nsw/css/styles.css") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment