From 0171ec572680af7799be36e612a4fd3f1d14ca9d Mon Sep 17 00:00:00 2001
From: Augustin Lemesle <augustin.lemesle@cea.fr>
Date: Mon, 2 Nov 2020 10:28:48 +0100
Subject: [PATCH] add minifier plugin

---
 Gemfile       |  1 +
 Gemfile.lock  | 15 +++++++++++++++
 _config.yml   |  7 ++++++-
 del-classes.o |  0
 4 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 del-classes.o

diff --git a/Gemfile b/Gemfile
index c228f380..b47648cb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -30,5 +30,6 @@ gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
 
 gem 'jekyll-paginate', group: :jekyll_plugins
 gem 'jekyll-category-pages', group: :jekyll_plugins
+gem 'jekyll-minifier', group: :jekyll_plugins
 
 gem "sassc", "< 2.2.0"
diff --git a/Gemfile.lock b/Gemfile.lock
index 5f0e5976..31f08509 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -5,12 +5,15 @@ GEM
       public_suffix (>= 2.0.2, < 4.0)
     colorator (1.1.0)
     concurrent-ruby (1.1.5)
+    cssminify2 (2.0.1)
     em-websocket (0.5.1)
       eventmachine (>= 0.12.9)
       http_parser.rb (~> 0.6.0)
     eventmachine (1.2.7)
+    execjs (2.7.0)
     ffi (1.12.2)
     forwardable-extended (2.6.0)
+    htmlcompressor (0.4.0)
     http_parser.rb (0.6.0)
     i18n (1.6.0)
       concurrent-ruby (~> 1.0)
@@ -34,6 +37,12 @@ GEM
       jekyll-paginate (~> 1.1, >= 1.0.0)
     jekyll-feed (0.12.1)
       jekyll (>= 3.7, < 5.0)
+    jekyll-minifier (0.1.10)
+      cssminify2 (~> 2.0)
+      htmlcompressor (~> 0.4)
+      jekyll (>= 3.5)
+      json-minify (~> 0.0.3)
+      uglifier (~> 4.1)
     jekyll-paginate (1.1.0)
     jekyll-sass-converter (2.0.0)
       sassc (> 2.0.1, < 3.0)
@@ -41,6 +50,9 @@ GEM
       jekyll (>= 3.3, < 5.0)
     jekyll-watch (2.2.1)
       listen (~> 3.0)
+    json (2.2.0)
+    json-minify (0.0.3)
+      json (> 0)
     kramdown (2.1.0)
     kramdown-parser-gfm (1.1.0)
       kramdown (~> 2.0)
@@ -72,6 +84,8 @@ GEM
       thread_safe (~> 0.1)
     tzinfo-data (1.2019.2)
       tzinfo (>= 1.0.0)
+    uglifier (4.2.0)
+      execjs (>= 0.3.0, < 3)
     unicode-display_width (1.6.0)
     wdm (0.1.1)
 
@@ -82,6 +96,7 @@ DEPENDENCIES
   jekyll (~> 4.0.0)
   jekyll-category-pages
   jekyll-feed (~> 0.12)
+  jekyll-minifier
   jekyll-paginate
   minima (~> 2.5)
   sassc (< 2.2.0)
diff --git a/_config.yml b/_config.yml
index c64bbfff..1254127f 100644
--- a/_config.yml
+++ b/_config.yml
@@ -31,7 +31,12 @@ github_username:  jekyll
 
 # Build settings
 theme: minima
-plugins: [jekyll-feed, jekyll-paginate, jekyll-category-pages]
+plugins: [jekyll-feed, jekyll-paginate, jekyll-category-pages, jekyll-minifier]
+
+jekyll-minifier:
+        uglifier_args:
+                harmony: true
+
 
 include: ['html']
 exclude: ['download',_jobs/skeleton.md]
diff --git a/del-classes.o b/del-classes.o
new file mode 100644
index 00000000..e69de29b
-- 
GitLab