Compress SCSS when pushing to jekyllrb.com.
Fixes #3153. Rel: #3145. Since d26202936ebe0d14bcacc5dea9c40a1b4bb830f3.
This commit is contained in:
parent
a6f8b6c7d6
commit
588f21f5cd
5
Rakefile
5
Rakefile
|
@ -198,6 +198,11 @@ namespace :site do
|
||||||
sh "cp -R #{path} gh-pages/"
|
sh "cp -R #{path} gh-pages/"
|
||||||
end
|
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.
|
# Commit and push.
|
||||||
puts "Committing and pushing to GitHub Pages..."
|
puts "Committing and pushing to GitHub Pages..."
|
||||||
sha = `git log`.match(/[a-z0-9]{40}/)[0]
|
sha = `git log`.match(/[a-z0-9]{40}/)[0]
|
||||||
|
|
Loading…
Reference in New Issue