-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
CSS not loading in Sprockets on 2.0.0 #246
Comments
Please provide a reproduction app so we can take a look. |
@excid3 here is a sample app for you: https://github.com/jonathandean/madmin-2-sprokets-sample-app Note: the rails server is running on port 3010 in these screenshots from the command:
Here's everything I did:
|
I seem to have same issue, it's not clear what you did to fix it @SyedMSawaid from your last message above. Could you add branch to your demo app showing how you resolved, or elaborate? I'm not familiar with |
Sprockets handles It might be possible to detect which asset pipeline is being used and serve a different file. Otherwise, we could likely combine all these into one massive file, but it will make maintaining the gem harder. |
@ryw I went to the |
Having same issue. Locally I managed to fix it in following way
but on production with asset digest - I can't get it to work |
Ok, I fixed it following way
What it does - it simply redirects to digested version of asset |
Pushed up a PR that supports sprockets. Try it out and let me know if it works for ya! |
I have an app with madmin working without issue until 2.0.0 and after upgrading I see no styles.
My app uses sprockets and importmaps. I have also tried to run the install generator again and also generate views.
The console shows that it can't fetch the newly split CSS files
from application-66ab1f74bae387890dacfe11cce5e0c8f39559dc6bc52b3899bd87b94211822a.css:6
Does 2.0.0 require propshaft and cssbundling-rails?
The text was updated successfully, but these errors were encountered: