-
Notifications
You must be signed in to change notification settings - Fork 28
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
application.css.sass? #1
Comments
The main difference between Sprocket's
Yes. Not sure what would happen if you have both, but you definitely shouldn't. You need to give your Does that help you? |
So my question is how to covert the standard manifest requires into @imports? Do you just replace every require with @import and call it good? Do you have to be more specific with the pathing? Does it have the ability to require_tree like the manifest does? Or do you have to @import every single file you want to include? Here's my current application.js. Perhaps if you show me how it would look with this gem that'll help me get on the right page. Thanks.
|
Oh, I think we have a little misunderstanding here. One should use Sass's Does that resolve your question? |
Sorry, I didn't mean to talk about and paste my application.js file. I meant to do it with my application.css file. I was/am/will be tired today :) So do all the requires in the application.css get replaced with @imports of those files then? Do you have to specify every single file manually, etc, etc. I still have all the same questions. And here is my application.css. Can you suggest how this would be converted to use your gem?
|
Because see, based on your Readme, it would have me doing this...
But I don't think those files in the requires above will be picked up by the asset pipeline if we're putting those in an application.css.sass file... will they? Do you see my confusion now? How do I get from normal asset pipeline with the requires to also including your @imports? Thanks, |
Actually the code above should work. There is nothing stopping you from mixing Let's say you have defined some variable inside |
Closing this issue. Feel free to reopen, if there are still things that need to be resolved. |
I don't fully understand your concrete question, could you rephrase it for me please? |
Should require self be converted to the @import format, if so how would that look? |
Does that help? |
Here is a nice explanation of how it can be used better: http://www.mattboldt.com/organizing-css-and-sass-rails/ #application.css
/*
*= require_self
*= require main
*/ then in the file stylesheets/main.scss #main.scss
@import "jquery-ui";
@import "font-awesome";
@import "bootstrap-sprockets";
@import "base/bootstrap_variables";
@import "bootstrap";
@import "bootstrap-switch.min";
@import "jquery.datetimepicker"; |
I'm a bit confused how you're supposed to use this using the @import methodology you mention. Can you clarify with a full example?
Does application.css.sass replace application.css entirely? Does it complement it? I would think that they would collide having the same name, but then again I've not ever done anything but the vanilla asset pipeline stuff with the manifest files.
Thanks,
Jon
The text was updated successfully, but these errors were encountered: