Merge branch 'support-minify' of kazu634/blog into master

This commit is contained in:
Kazuhiro MUSASHI 2020-04-19 00:19:35 +09:00 committed by Gitea
commit a0e9a838ec
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ steps:
- name: hugo - name: hugo
image: cibuilds/hugo:0.69.0 image: cibuilds/hugo:0.69.0
commands: commands:
- sudo hugo -e production -v -s . - sudo hugo -e production --minify -v -s .
- name: Compress-the-Assets - name: Compress-the-Assets
image: alpine:3.9 image: alpine:3.9
@ -66,7 +66,7 @@ steps:
- name: hugo - name: hugo
image: cibuilds/hugo:0.69.0 image: cibuilds/hugo:0.69.0
commands: commands:
- sudo hugo -e staging -v -s . - sudo hugo -e staging --minify -v -s .
- name: Compress-the-Assets - name: Compress-the-Assets
image: alpine:3.9 image: alpine:3.9

View File

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

View File

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