We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(Moving this here from rails/sass-rails#203 as per @guilleiguaran's suggestion)
On a new Rails 4.1 app, there seems to have been a significant change to the way asset dependencies are handled.
Given app/assets/stylesheets/application.css.sass:
app/assets/stylesheets/application.css.sass
body background: image-url("bg.png")
this produces the following error because there is no depend_on_asset directive:
depend_on_asset
Sprockets::Rails::Helper::DependencyError: Asset depends on 'bg.png' to generate properly but has not declared the dependency
Surely, any call to the image-url function (or any of the other asset helper functions) should automatically declare this dependency?
image-url
I also found this tweet which illustrates how absurd this can potentially get: https://twitter.com/libc/status/453659390231728129
The text was updated successfully, but these errors were encountered:
/cc @schneems @rafaelfranca
Sorry, something went wrong.
No branches or pull requests
(Moving this here from rails/sass-rails#203 as per @guilleiguaran's suggestion)
On a new Rails 4.1 app, there seems to have been a significant change to the way asset dependencies are handled.
Given
app/assets/stylesheets/application.css.sass
:this produces the following error because there is no
depend_on_asset
directive:Surely, any call to the
image-url
function (or any of the other asset helper functions) should automatically declare this dependency?I also found this tweet which illustrates how absurd this can potentially get: https://twitter.com/libc/status/453659390231728129
The text was updated successfully, but these errors were encountered: