Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress Website Sass output #6009

Merged
merged 2 commits into from Apr 25, 2017
Merged

Compress Website Sass output #6009

merged 2 commits into from Apr 25, 2017

Conversation

DirtyF
Copy link
Member

@DirtyF DirtyF commented Apr 5, 2017

Suggested by @pathawks in #6008

rake/site.rake Outdated
@@ -47,7 +47,7 @@ namespace :site do
task :update_normalize_css do
Dir.chdir("#{docs_folder}/_sass") do
sh 'curl "https://necolas.github.io/normalize.css/latest/normalize.css" -o "normalize.scss"'
sh 'sass "normalize.scss":"_normalize.scss" --style compressed'
sh 'sass "normalize.scss":"_normalize.scss"'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this?

Why not:

sh 'curl "https://necolas.github.io/normalize.css/latest/normalize.css" -o "_normalize.scss"'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that previously we used a Sass workflow, and now we rely entirely on GitHub Pages pipeline. We therefore can simplify here to the bare minimum, you're right.

Suggestion applied. 🖖

Just copy the latest version to the Website Sass folder and let Jekyll handle the compression. 
props @pathawks
@pathawks
Copy link
Member

pathawks commented Apr 6, 2017

…as long as there isn't some reason I'm not thinking of to not do this

@DirtyF DirtyF requested a review from parkr April 6, 2017 15:29
@parkr
Copy link
Member

parkr commented Apr 10, 2017

This is automatically done in production - are you seeing different results on jekyllrb.com?

@DirtyF
Copy link
Member Author

DirtyF commented Apr 10, 2017

@parkr https://jekyllrb.com/css/screen.css does not look compressed to me

@parkr
Copy link
Member

parkr commented Apr 25, 2017

You're absolutely right! It defaults to :compact, which isn't the same.

@parkr
Copy link
Member

parkr commented Apr 25, 2017

@jekyllbot: merge +docs

@jekyllbot jekyllbot merged commit d37f604 into jekyll:master Apr 25, 2017
jekyllbot added a commit that referenced this pull request Apr 25, 2017
@DirtyF DirtyF deleted the sass-compressed branch April 25, 2017 15:42
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants