Skip to content

Instantly share code, notes, and snippets.

@xtfer
Last active December 21, 2015 09:59
Show Gist options
  • Save xtfer/6289172 to your computer and use it in GitHub Desktop.
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/
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