-
Notifications
You must be signed in to change notification settings - Fork 44
/
config.rb
43 lines (31 loc) · 897 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
36
37
38
39
40
41
42
43
activate :google_analytics do |ga|
ga.tracking_id = 'UA-59738061-1'
ga.anonymize_ip = true
ga.debug = false
ga.development = false
ga.minify = true
end
require 'slim'
activate :autoprefixer,
browsers: ['last 10 versions', 'ie 8', 'ie 9']
activate :livereload
activate :directory_indexes
set :js_dir, 'assets/javascripts'
set :css_dir, 'assets/stylesheets'
set :images_dir, 'assets/images'
# 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
# Build-specific configuration
configure :build do
activate :autoprefixer,
browsers: ['last 10 versions', 'ie 8', 'ie 9']
activate :minify_html
activate :minify_css
activate :minify_javascript
activate :asset_hash
activate :relative_assets
activate :gzip
end