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
Copy file name to clipboardExpand all lines: UPGRADING.md
+42-4Lines changed: 42 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,18 @@ ActiveAdmin v4 uses TailwindCSS. It has **mobile web, dark mode and RTL support*
8
8
9
9
These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing.
10
10
11
-
Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta15"` and then run `gem install activeadmin --pre`.
11
+
Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta16"` and then run `gem install activeadmin --pre`.
12
12
13
13
Now, run `rails generate active_admin:assets` to replace the old assets with the new files.
14
14
15
15
Then add the npm package and update the `build:css` script.
npm pkg set scripts.build:css="npx @tailwindcss/cli -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify"
20
20
```
21
21
22
-
If you are already using Tailwind in your app, then update the `build:css` script to chain the above command to your existing one, e.g. `"tailwindcss ... && tailwindcss ..."`, so both stylesheets are generated.
22
+
If you are already using Tailwind in your app, then update the `build:css` script to chain the above command to your existing one, e.g. `"npx @tailwindcss/cli ... && npx @tailwindcss/cli ..."`, so both stylesheets are generated.
23
23
24
24
Many configs have been removed (meta tags, asset registration, utility nav, etc.) that can now be modified more naturally through partials.
25
25
@@ -47,6 +47,44 @@ Note that the templates can and will change across releases. There are additiona
47
47
48
48
With the setup complete, please review the Breaking Changes section and resolve any that may or may not impact your integration.
49
49
50
+
### Upgrading from earlier 4.x beta to 4.0.0.beta16
51
+
52
+
Starting with version 4.0.0.beta16, ActiveAdmin has migrated from TailwindCSS v3 to TailwindCSS v4.
53
+
54
+
If you're upgrading from any earlier 4.0.0 beta release, please review and apply the required adjustments outlined below.
0 commit comments