You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, one project includes @import "morris.core.css"; during assets:precompile, the other leaves it and thus tries to fetch it in production mode.
The files are named the same (application.less), production config is same, and I tried to clear cache at both files with no success. Which one is the "normal" behavior? Any idea why the projects could differ?
Help is greatly appreciated :)
The text was updated successfully, but these errors were encountered:
Alright, I am still not sure why it fails in the one project and works in the other. I know less itself just keeps @import *.css, but I thought less-rails substitutes with the help of the asset pipeline.
Anyhow, the workaround is putting all your sprocket css files in a sprocket.css, add this to asset pipeline precompile list and then include this css. It will still remain a normal @import after precompilation, but at least this file can then be resolved and included at runtime.
Hi,
maybe it's too late and I don't see the obvious:
I have two projects that use
However, one project includes
@import "morris.core.css";
duringassets:precompile
, the other leaves it and thus tries to fetch it in production mode.The files are named the same (
application.less
), production config is same, and I tried to clear cache at both files with no success. Which one is the "normal" behavior? Any idea why the projects could differ?Help is greatly appreciated :)
The text was updated successfully, but these errors were encountered: