mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
Minify production assets
This commit is contained in:
parent
55613f253a
commit
ffdf25e511
27
config.rb
27
config.rb
@ -122,7 +122,7 @@ end
|
||||
###
|
||||
|
||||
# Automatic image dimensions on image_tag helper
|
||||
# activate :automatic_image_sizes
|
||||
activate :automatic_image_sizes
|
||||
|
||||
# Reload the browser automatically whenever files change
|
||||
activate :livereload
|
||||
@ -131,36 +131,31 @@ activate :livereload
|
||||
activate :directory_indexes
|
||||
|
||||
# Middleman-Syntax - https://github.com/middleman/middleman-syntax
|
||||
set :haml, { ugly: true }
|
||||
set :haml, {
|
||||
ugly: true,
|
||||
escape_attrs: :once
|
||||
}
|
||||
set :markdown_engine, :redcarpet
|
||||
set :markdown, fenced_code_blocks: true, smartypants: true
|
||||
set :markdown, fenced_code_blocks: true, smartypants: true, :footnotes => true, :tables => true
|
||||
activate :syntax, line_numbers: true
|
||||
|
||||
# Methods defined in the helpers block are available in templates
|
||||
# helpers do
|
||||
# def some_helper
|
||||
# "Helping"
|
||||
# end
|
||||
# end
|
||||
|
||||
set :css_dir, 'stylesheets'
|
||||
|
||||
set :js_dir, 'javascripts'
|
||||
|
||||
set :images_dir, 'images'
|
||||
|
||||
set :partials_dir, 'partials'
|
||||
|
||||
# Build-specific configuration
|
||||
configure :build do
|
||||
# For example, change the Compass output style for deployment
|
||||
# activate :minify_css
|
||||
activate :minify_css
|
||||
|
||||
# Minify Javascript on build
|
||||
# activate :minify_javascript
|
||||
activate :minify_javascript
|
||||
|
||||
activate :gzip
|
||||
|
||||
# Enable cache buster
|
||||
# activate :asset_hash
|
||||
activate :asset_hash
|
||||
|
||||
# Use relative URLs
|
||||
# activate :relative_assets
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user