Skip to content

Instantly share code, notes, and snippets.

@cliftoncanady
Forked from nathansmith/config.rb
Last active December 24, 2015 08:39
Show Gist options
  • Save cliftoncanady/6772382 to your computer and use it in GitHub Desktop.
Save cliftoncanady/6772382 to your computer and use it in GitHub Desktop.
preferred_syntax = :sass
http_path = '/'
css_dir = 'css'
sass_dir = 'scss'
images_dir = 'img'
javascripts_dir = 'js'
relative_assets = true
line_comments = true
output_style = :compressed
environment = :development
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "style.css"
puts "Moving: #{file}"
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