Compress SCSS when pushing to jekyllrb.com.

Fixes #3153.
Rel: #3145.
Since d26202936ebe0d14bcacc5dea9c40a1b4bb830f3.
This commit is contained in:
Parker Moore 2014-11-26 11:32:09 -08:00
parent a6f8b6c7d6
commit 588f21f5cd
1 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,11 @@ namespace :site do
sh "cp -R #{path} gh-pages/"
end
# Change any configuration settings for production.
config = YAML.load_file("gh-pages/_config.yml")
config.merge!({'sass' => {'style' => 'compressed'}})
File.write('gh-pages/_config.yml', YAML.dump(config))
# Commit and push.
puts "Committing and pushing to GitHub Pages..."
sha = `git log`.match(/[a-z0-9]{40}/)[0]