-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.rb
37 lines (28 loc) · 791 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
activate :directory_indexes
set :relative_links, true
::Slim::Engine.set_options format: :html
page "/*.xml", layout: false
page "/*.json", layout: false
page "/*.txt", layout: false
page "/404.html", directory_index: false
set :css_dir, "assets/stylesheets"
set :images_dir, "assets/images"
set :js_dir, "assets/javascripts"
configure :development do
::Slim::Engine.set_options pretty: true
end
configure :build do
activate :external_pipeline,
name: :gulp,
command: "npm run production",
source: ".tmp",
latency: 1
ignore "assets/javascripts/all.js"
ignore "assets/stylesheets/site"
activate :gzip
::Slim::Engine.set_options pretty: false
activate :minify_html do |html|
html.remove_quotes = false
html.remove_intertag_spaces = true
end
end