Remove sass-rails dependency#907
Conversation
|
Thank you very much for your thorough PR! This looks great. I'm definitely in favor of dropping sass now that we're using Tailwind. Any specific reason why you chose to separate the |
|
@Bramjetten Thanks for your response. No specific reason actually, I've just updated the PR to keep the same stylesheet. Also realized it actually has to use the Asset Pipeline helpers to properly compile given that the sassc importer is gone 😅 |
|
I believe it might be necessary to make the require calls in This is necessary because Spina actually copies its own stylesheets to the main app's It hooks into |
|
Thank you very much for your work and quick responses! 🙏 |
|
@Bramjetten Happy to! And likewise :) |
|
Just pushed v2.6.1 to Rubygems 🎉 |
|
Not sure why, but I can't get Spina to run without sassc. It looks like Sprockets needs it (getting a LoadError on Not sure why this doesn't come up in Github Actions. |
|
@Bramjetten Interesting. What sprockets and rails versions are you seeing the failure with? Curious if perhaps it caused by an older version prior to rails/rails#43110. |
Context
Hi all 👋
I was trying to integrate Spina into an existing project, but run into an issue when precompiling assets (everything worked fine in development). The problem is that TailwindCSS has some syntax the breaks the SassC processor:
Like the errors shows, this issue is certainly not Spina specific, but rather caused by Spina's
sass-railsdependency. Other people have faced the same issue when including the dependency: rails/cssbundling-rails#18.The only workaround seems to remove the
sass-railsgem and I think it will be good to remove it for a few reasons:sassc-railsis kinda deprecated (which is a dependency ofsass-rails).sass-railsas a default for this reason. It seems many people have faced hardships maintaining projects the rely on this gem.sass-railspresence.Changes proposed in this pull request
This PR makes the necessary changes to drop
sass-railscompletely. It mainly consists of file renaming and reference changes.Guidance to review
None. All tests pass locally.
P.S: Thanks for all the work in Spina, it's an amazing project! 🤘