From d3703dba89d43701b0995e97b49e61007ae6edbc Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 9 Jul 2017 21:40:26 +0100 Subject: [PATCH] Enable asset compression --- Gemfile | 1 + Gemfile.lock | 3 +++ _config.yml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index 8bdb6ed..7cbc9c8 100644 --- a/Gemfile +++ b/Gemfile @@ -25,6 +25,7 @@ group :jekyll_plugins do gem 'jekyll-pants' gem 'jekyll-seo-tag' gem 'jekyll-sitemap' + gem 'uglifier' # required by 'jekyll-assets' for JS compression end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 9669da2..63f2eb2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -219,6 +219,8 @@ GEM ethon (>= 0.8.0) tzinfo (1.2.3) thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) unicode-display_width (1.3.0) PLATFORMS @@ -233,6 +235,7 @@ DEPENDENCIES rake rubocop tzinfo-data + uglifier BUNDLED WITH 1.14.6 diff --git a/_config.yml b/_config.yml index db69092..7514ac8 100644 --- a/_config.yml +++ b/_config.yml @@ -45,6 +45,9 @@ defaults: assets: digest: true + compress: + css: true + js: true markdown: kramdown kramdown: