-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
50 lines (39 loc) · 1.55 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
compass_config do |config|
# Require any additional compass plugins here.
config.add_import_path "bower_components/foundation/scss"
# Set this to the root of your project when deployed:
config.http_path = "/"
config.css_dir = "stylesheets"
config.sass_dir = "stylesheets"
config.images_dir = "images"
config.javascripts_dir = "javascripts"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = 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
end
# Add bower's directory to sprockets asset path
after_configuration do
@bower_config = JSON.parse(IO.read("#{root}/.bowerrc"))
sprockets.append_path File.join "#{root}", @bower_config["directory"]
end
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :fonts_dir, 'fonts'
activate :livereload
activate :i18n, mount_at_root: :fr
ignore 'bower_components/*'
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
activate :asset_hash, ignore: 'bower_components/*'
end