Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Propshaft support #3675

Open
wlipa opened this issue Feb 29, 2024 · 2 comments
Open

Propshaft support #3675

wlipa opened this issue Feb 29, 2024 · 2 comments

Comments

@wlipa
Copy link

wlipa commented Feb 29, 2024

The rails_admin gem does not work in apps that use Propshaft to serve assets instead of Sprockets. I was able to work around it like this, but it would be nice to support Propshaft out of the box.

config/initializers/assets.rb:

# stub for rails_admin compat
class Sprockets
  def self.register_bundle_processor(...) = nil
end

Also, one needs to grab application.js, application.css, and the fa-solid woff2 font from a sprockets based rails_admin live page.
Place in app/assets/stylesheets/rails_admin and app/assets/javascripts/rails_admin.

The CSS needs to be modified to change the fa-solid url to a propshaft compilable url (i.e, take out the digest).

@koenhandekyn
Copy link

it probably could be quite simple indeed, by 'installing' compiled versions of the assets, that simply could be checked in? maybe from a generator?

as bootstrap is now supporting theming and configuration with plain css variables, the need for sass actually is much smaller for most uses cases anyhow.

@vpereira
Copy link

After this #3399 I was able to run propshaft with rails admin without problems

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants