-
Notifications
You must be signed in to change notification settings - Fork 10
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
Looks like sprockets v4.0.0 upgrade changed to use manifest file heav… #1406
Changes from all commits
fab19d8
b807189
cc5833b
3c03275
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//= link_tree ../images | ||
//= link_directory ../javascripts .js | ||
//= link_directory ../stylesheets .css | ||
|
||
//= link application.css | ||
//= link admin.js | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of Tested both quickly by running Rails s and looking at admin section. All seems good |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
$cc-background: $gray-100; | ||
|
||
.community-collection { | ||
.card { | ||
// TODO: have real designer pick this | ||
background-color: $cc-background; | ||
background-color: $gray-100; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clean this up a bit. Don't need the secondary variable and TODO isn't really relevant anymore 😅 |
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
# Precompile additional assets. | ||
# application.js, application.css, and all non-JS/CSS in the app/assets | ||
# folder are already added. | ||
Rails.application.config.assets.precompile += %w[admin.js] | ||
# Rails.application.config.assets.precompile += %w[admin.js] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently you don't do this anymore in Sprockets v4.0.0, they want you to use manifest instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is the problem. It was loading it in a order we didn't want. We want to load just the application.css file and the order that is specified by that file.
rails/sprockets#597 (comment)