Skip to content

Commit 2120cdd

Browse files
authored
Add --minify to just-in-time-mode.mdx (#961)
- Minifying the output sounds like a smart default for `build` scripts. Via https://youtu.be/oG6XPy1t1KA?t=995 - Also favor `--watch` over the more cryptic `-w`.
1 parent d3f743b commit 2120cdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/docs/just-in-time-mode.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ For example, if you are using `postcss-cli`, set `TAILWIND_MODE=watch` in your d
508508
"dev": "TAILWIND_MODE=watch postcss -i tailwind.css -o build.css --watch",
509509

510510
// Do not set TAILWIND_MODE for one-off builds
511-
"build": "postcss -i tailwind.css -o build.css",
511+
"build": "postcss -i tailwind.css -o build.css --minify",
512512
// ...
513513
},
514514
// ...
@@ -582,10 +582,10 @@ You can use packages like `npm-run-all` or `concurrently` to compile your CSS al
582582
"scripts": {
583583
"dev": "npm-run-all --parallel dev:*",
584584
"dev:parcel": "parcel serve ./src/index.html",
585-
"dev:css": "tailwindcss -o src/tailwind.css -w",
585+
"dev:css": "tailwindcss -o src/tailwind.css --watch",
586586
"build": "npm-run-all build:css build:parcel",
587587
"build:parcel": "parcel build ./src/index.html",
588-
"build:css": "tailwindcss -o src/tailwind.css",
588+
"build:css": "tailwindcss -o src/tailwind.css --minify",
589589
},
590590
}
591591
```

0 commit comments

Comments
 (0)