-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
38 lines (30 loc) · 908 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
# frozen_string_literal: true
require 'slim'
set :css_dir, 'css'
set :js_dir, 'js'
set :images_dir, 'img'
set :slim, pretty: true, sort_attrs: true, format: :html
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
configure :development do
activate :livereload, host: '0.0.0.0', ignore: [
/node_modules\//
]
end
activate :external_pipeline,
name: :webpack,
command: build? ?
'./node_modules/.bin/webpack --bail -p --mode=production' :
'./node_modules/.bin/webpack --watch -d --progress --color --mode=development',
source: '.tmp/dist',
latency: 1
configure :build do
set :slim, pretty: false, sort_attrs: true, format: :html
# activate :asset_hash
activate :gzip
end
config[:host] = 'https://www.iwate-alle.net'
# Helpers
require 'lib/titled_helpers'
helpers TitledHelpers