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: README.md
+28-2
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ With some additional manual work the upstream upgrade tool will update your appl
195
195
/node_modules
196
196
```
197
197
198
-
**Create** a `package.json`in the root of the project:
198
+
**Create**or **update**a `package.json`in the root of the project:
199
199
200
200
```jsonc
201
201
{
@@ -232,7 +232,9 @@ With some additional manual work the upstream upgrade tool will update your appl
232
232
233
233
Then, once you've run that successfully, clean up:
234
234
235
-
- **Delete** `package.json`, `node_modules/` and `package-lock.json` (or `yarn.lock`), plus remove `/node_modules` from `.gitignore`.
235
+
- **Review** `package.json` to remove unnecessary modules.
236
+
- This includes modules added for the period of upgrade.
237
+
- If you don't need any modules besides `tailwindcss` itself, **delete**`package.json`, `node_modules/` and `package-lock.json` (or `yarn.lock`), plus remove `/node_modules` from `.gitignore`.
236
238
- **Go** to your CSS file and remove the following line (if present):
237
239
```css
238
240
@plugin '@tailwindcss/container-queries';
@@ -273,6 +275,30 @@ This gem also makes available a Puma plugin to manage a live rebuild process whe
273
275
274
276
This gem also generates a `Procfile.dev` file which will run both the rails server and a live rebuild process (see "Live Rebuild" section below).
275
277
278
+
#### Install plugins
279
+
280
+
Tailwind plugins can be installed using `package.json`.
281
+
282
+
Using Yarn:
283
+
284
+
``` sh
285
+
[ !-f package.json ] && yarn init
286
+
yarn add daisyui # example
287
+
```
288
+
289
+
Using npm:
290
+
291
+
``` sh
292
+
npm init
293
+
npm add daisyui # example
294
+
```
295
+
296
+
Than use `@plugin` annotation in`app/assets/tailwind/application.css`:
0 commit comments