-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.rb
35 lines (31 loc) · 894 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
34
35
# Require any additional compass plugins here.
require 'autoprefixer-rails'
# require 'csso'
on_stylesheet_saved do |file|
css = File.read(file)
map = file + '.map'
if File.exists? map
result = AutoprefixerRails.process(css,
from: file,
to: file,
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) }
end
end
preferred_syntax = :scss
http_path = '/'
css_dir = 'docs/assets/css'
sass_dir = 'docs/assets/sass'
add_import_path "docs/assets/sass/demo-tiles"
add_import_path "output/prism-sass"
images_dir = 'assets/img'
javascripts_dir = 'assets/js'
relative_assets = true
# line_comments = true
line_comments = false
output_style = :compressed
sourcemap = true
# output_style = :expanded