-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
53 lines (43 loc) · 1.57 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
51
52
53
######################################################################
# General settings.
######################################################################
# Meta.
set :meta, {
title: 'Superior Type',
url: 'http://superior.com',
}
# Change to your Google Analytics key (e.g. UA-XXXXXXXX-Y).
# To disable GA, leave unset or set to nil
# Code will only be injected in build environment
set :ga_key, 'UA-XXXXXXX-Y'
# Locations.
set :css_dir, 'assets/stylesheets'
set :js_dir, 'assets/javascripts'
set :images_dir, 'assets/images'
set :fonts_dir, 'assets/fonts'
set :partials_dir, 'partials'
after_configuration do
# Add bower's directory to sprockets asset path.
@bower_config = JSON.parse(IO.read("#{root}/.bowerrc"))
sprockets.append_path File.join "#{root}", @bower_config["directory"]
end
######################################################################
# Development environment.
######################################################################
configure :development do
activate :livereload, apply_js_live: false, apply_css_live: false
activate :directory_indexes
end
######################################################################
# Build environment.
######################################################################
configure :build do
activate :relative_assets
activate :directory_indexes
activate :asset_hash, ignore: /.*\.svg/
# Ensmallen assets
activate :minify_html, remove_input_attributes: false
activate :minify_css
#activate :minify_javascript
activate :gzip, exts: %w(.js .css .html .htm .svg .ttf .otf .woff .eot)
end