-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.rb
executable file
·32 lines (26 loc) · 963 Bytes
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Require any additional compass plugins here.
require "compass-recipes"
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "library/css"
sass_dir = "library/scss"
images_dir = "library/images"
javascripts_dir = "library/js"
fonts_dir = "library/css"
output_style = :expanded
# To enable relative paths to library via compass helper functions. Uncomment:
# relative_library = true
line_comments = false
color_output = false
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "style.css"
puts "Moving style.css: #{file}"
FileUtils.mv(file, File.dirname(file) + "/../../" + File.basename(file))
end
end
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass library/css scss && rm -rf sass && mv scss sass