Add `--minify` option to `Rakefile` task.
This commit is contained in:
parent
b0ea0bcb3f
commit
3923fd264c
|
@ -4,7 +4,7 @@ require 'find'
|
||||||
|
|
||||||
desc 'Deploy the hugo contents to the server'
|
desc 'Deploy the hugo contents to the server'
|
||||||
task :prod => [:prep] do
|
task :prod => [:prep] do
|
||||||
sh 'hugo -v'
|
sh 'hugo -v --minify'
|
||||||
|
|
||||||
sh 'find public -type f -name "*.gz" -delete'
|
sh 'find public -type f -name "*.gz" -delete'
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ require 'find'
|
||||||
|
|
||||||
desc 'Deploy the hugo contents to the server'
|
desc 'Deploy the hugo contents to the server'
|
||||||
task :stag => [:prep] do
|
task :stag => [:prep] do
|
||||||
sh 'hugo -e staging -v'
|
sh 'hugo -e staging -v --minify'
|
||||||
|
|
||||||
sh 'find public -type f -name "*.gz" -delete'
|
sh 'find public -type f -name "*.gz" -delete'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue