-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Documentation is misleading #691
Comments
ya that should probably be an |
It is better to avoid using Sprockets |
^ actually yes. If you're going Sass you should probably go full Sass and not use manifests. If you're using external gems that only distribute .css, I presume you can put Sprocket manifests at the top of |
With regard to this documentation. How would one now add additional CSS files like font-awesome-sass or in my case I have a my-site.css.scss that I want to load after all other CSS files? |
@minordv8 Just |
@twbs/sass So, where are we at on this? |
Documentation is not misleading, should've closed this a few months ago. |
Hey, @glebm, I get asked multiple times per week by beginners about why their application lost all their CSS styles after running the following command: Could we change this to be a:
instead of a:
Or, if that isn't a viable option something that actually explains what to do? It's not misleading for someone who has years of rails experience, but if you're just picking it up the notes are super confusing. |
I see. Perhaps instead we should just say |
Thanks for fixing this, @glebm. You rock! :) 👍 |
I believe I've come up with a better solution, then what the documentation suggests. Particularly, because in my case every stylesheet is served in separate request in development and therefore only those stylesheets that has changed get recompiled. That must be what @tombh suggested. Actually, this particular part of the docs was confusing to me. It seemed like |
👍 for @x-yuri's solution |
The documentation is a bit misleading, particularly for beginners. Instructing people to run this command if the file exists:
Will delete the existence of that file, along with what it is doing:
Really what you want to do is rename the file
app/assets/stylesheets/application.css
toapp/assets/stylesheets/application.css.scss
in order to access the full power of SASS, while maintaining the way the asset pipeline compiles assets, rather than eliminating everything entirely.The text was updated successfully, but these errors were encountered: