Fix minify generation of ./_site/ (#863)

This commit is contained in:
Adam Scott
2024-06-03 04:16:30 -04:00
committed by GitHub
parent c40766384d
commit 7335d8d2c7

View File

@@ -1,5 +1,8 @@
# Minify assets after each build
Jekyll::Hooks.register :site, :post_write do
puts "Minifying assets"
`minify -r -o _site/ _site/`
# Project path
site_path_from = File.join(Dir.pwd, "_site")
site_path_to = Dir.pwd
`minify -r -o #{site_path_to} #{site_path_from}`
end