Add `--minify` option to `Rakefile` task.

This commit is contained in:
Kazuhiro MUSASHI 2020-04-18 23:00:23 +08:00
parent b0ea0bcb3f
commit 3923fd264c
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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'