This gem is for you if you want to be able to run ActiveAdmin v4+ without any asset setup, e.g.:
- no
cssbundling-rails
ortailwindcss-rails
- no
sprockets
orpropshaft
- no
assets:precompile
or similar build steps
Like the asset gems of old, it includes static copies of all required assets and injects them automatically.
- This will prevent you from customizing ActiveAdmin's tailwind config, making theming more hacky.
- This will prevent you from using tailwind classes that are not used by ActiveAdmin itself.
- This might break with ActiveAdmin updates, though I don't consider it likely so its not version-locked yet.
Add activeadmin_assets
to your Gemfile.
That's it 😁. If you want, you can configure the path to serve static assets from:
ActiveAdminAssets.path = '/x/admin-assets' # default: '/active_admin_assets'
Bug reports and pull requests are welcome on GitHub at https://github.com/jaynetics/activeadmin_assets.
The gem is available as open source under the terms of the MIT License.