From 3923fd264ce54e077e4448c68b6a4144a834ca35 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 18 Apr 2020 23:00:23 +0800 Subject: [PATCH] Add `--minify` option to `Rakefile` task. --- tasks/production.rake | 2 +- tasks/staging.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/production.rake b/tasks/production.rake index 17e28dd..acf47b4 100644 --- a/tasks/production.rake +++ b/tasks/production.rake @@ -4,7 +4,7 @@ require 'find' desc 'Deploy the hugo contents to the server' task :prod => [:prep] do - sh 'hugo -v' + sh 'hugo -v --minify' sh 'find public -type f -name "*.gz" -delete' diff --git a/tasks/staging.rake b/tasks/staging.rake index 08d94c5..647953f 100644 --- a/tasks/staging.rake +++ b/tasks/staging.rake @@ -4,7 +4,7 @@ require 'find' desc 'Deploy the hugo contents to the server' task :stag => [:prep] do - sh 'hugo -e staging -v' + sh 'hugo -e staging -v --minify' sh 'find public -type f -name "*.gz" -delete'