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

Remove .css to silence deprecation warning in sass-rails ~>5.0.1 #243

Closed

Conversation

jbarrieault
Copy link

The warning logged when using with Rails 4.2.5 with sass-rails 5.0.1:

DEPRECATION WARNING: Extra .css in SCSS file is unnecessary. Rename /opt/rubies/2.2.1/lib/ruby/gems/2.2.0/gems/s3_direct_upload-0.1.7/app/assets/stylesheets/s3_direct_upload_progress_bars.css.scss to /opt/rubies/2.2.1/lib/ruby/gems/2.2.0/gems/s3_direct_upload-0.1.7/app/assets/stylesheets/s3_direct_upload_progress_bars.scss. 

@mcfiredrill
Copy link
Collaborator

LGTM 👍

@mcfiredrill
Copy link
Collaborator

Is this compatible with older rails versions?

@jbarrieault
Copy link
Author

I believe so, but I haven't tested. I can take a look over the weekend.

Or—since this is the only stylesheet and is very minimal—we could use vanilla CSS and drop the dependency on rails-sass altogether 😃

@mcfiredrill
Copy link
Collaborator

@jbarrieault yeah, there's another PR to drop the dependency on sass. Are we even using any sass features?!

@jbarrieault
Copy link
Author

The stylesheet does use nesting which is sass. Well worth it to use pure css to lose the dependency!

@jbarrieault
Copy link
Author

Closing since the dependency on SASS should be dropped all together, IMO. #193 does this, but conflicts need to be resolved.

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.

2 participants