-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
executable file
·33 lines (25 loc) · 974 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
33
require 'compass/import-once/activate'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "wp-content/themes/toolbox/css"
sass_dir = "wp-content/themes/toolbox/sass"
images_dir = "wp-content/themes/toolbox/images"
javascripts_dir = "wp-content/themes/toolbox/js"
fonts_dir = "wp-content/themes/toolbox/fonts"
output_style = :expanded
#:nested, :expanded, :compact, or :compressed.
environment = :production
#The environment mode. Defaults to :development, can also be :production
relative_assets = false
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = true
color_output = false
preferred_syntax = :sass
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "style.css"
puts "Moving: #{file}"
FileUtils.cp(file, File.dirname(file) + "/../" + File.basename(file))
end
end