config.rb
1.58 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'compass/import-once/activate'
# autoprefixer自动加浏览器前缀
# 需要先安装, gem install autoprefixer-rails
# require 'autoprefixer-rails'
#
# on_stylesheet_saved do |file|
# css = File.read(file)
# map = file + '.map'
# browsers = ['> 1%', 'ie 8']
#
# if File.exists? map
# result = AutoprefixerRails.process(css,
# from: file,
# to: file,
# browsers: browsers,
# map: { prev: File.read(map), inline: false })
# File.open(file, 'w') { |io| io << result.css }
# File.open(map, 'w') { |io| io << result.map }
# else
# File.open(file, 'w') { |io| io << AutoprefixerRails.process(css, browsers) }
# end
# end
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "font"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
output_style = :expanded
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
sourcemap = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
# 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 sass scss && rm -rf sass && mv scss sass
Encoding.default_external = "utf-8"