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

Support 'sassc' gem #336

Closed
wants to merge 2 commits into from
Closed

Support 'sassc' gem #336

wants to merge 2 commits into from

Conversation

judofyr
Copy link
Collaborator

@judofyr judofyr commented Nov 14, 2018

This fixes #334 and is an alternative to #335

/cc @jdickey @krisleech @tdreyno

@krisleech
Copy link

krisleech commented Nov 14, 2018

I tried this branch with our application and all specs pass and rake assets:precompile works just fine.

Edit: Although I just realised I have sass in Gemfile because we are on sprockets 3 which fails without sass.

Edit: I tried spockets 4.x (by pinning to master, since it isn't released yet) and I get some sprockets errors, not related to tilt, a missing manifest.js file. I'll take a look at this tomorrow and see if I can get it working. But the PR looks good regardless.

rescue LoadError => err
begin
require 'sass'
Sass == ::Sass
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hah! There's actually a typo here (==), but it turns out to not really matter due to the constant lookup rules.

Choose a reason for hiding this comment

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

Great spot. I'm surprised it actually works!

@anirbanmu
Copy link

anirbanmu commented Nov 28, 2018

Looking forward to when this is merged. I tried to replace sass with sassc on a sinatra project, and came to realize that tilt doesn't have support for sassc yet.

For the moment, I'm using this gem which pretty much does exactly the same as this PR: https://github.com/anirbanmu/tilt-sassc

@tdreyno
Copy link

tdreyno commented Nov 28, 2018

Agreed. Looks solid 👍

@judofyr
Copy link
Collaborator Author

judofyr commented Nov 28, 2018

This has now been merged!

@judofyr judofyr closed this Nov 28, 2018
@anirbanmu
Copy link

@judofyr thanks! Can you, if possible, leave a comment on here when you push 2.0.9 to rubygems? Otherwise I'll keep an eye out for it on rubygems.

@judofyr
Copy link
Collaborator Author

judofyr commented Nov 28, 2018

2.0.9 has been pushed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eliminate dependency on deprecated 'sass' Gem
4 participants