From ffdf25e5119a2d66c8794ddd9620cd77286efeca Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sat, 5 Dec 2015 23:10:44 +0100 Subject: [PATCH] Minify production assets --- config.rb | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/config.rb b/config.rb index dbe8b7a..d91ceac 100644 --- a/config.rb +++ b/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