diff --git a/.drone.yml b/.drone.yml index c6ceed1..140630f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: - name: hugo image: cibuilds/hugo:0.69.0 commands: - - sudo hugo -e production -v -s . + - sudo hugo -e production --minify -v -s . - name: Compress-the-Assets image: alpine:3.9 @@ -66,7 +66,7 @@ steps: - name: hugo image: cibuilds/hugo:0.69.0 commands: - - sudo hugo -e staging -v -s . + - sudo hugo -e staging --minify -v -s . - name: Compress-the-Assets image: alpine:3.9 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'