Commit Graph
10 Commits
Author SHA1 Message Date
Robin MalfaitandGitHub 7a159ef4a5 [v4] Make CSS optimization and minification configurable (#13130)
* only run Lightning CSS when passing `--minify` to the CLI

* only optimize the CSS when creating a production build

* add `optimize` option to PostCSS plugin

- The optimize option can be set to `true`, which will optimize
  (unnesting, adding browser prefixes, lowering values) and minify
- The optimize option can also be set to `{ minify: false }`, which will
  optimize but not minify.

* default `optimize` option to the true for `NODE_ENV=production`

* add `--optimize` flag to CLI

This will only optimize the CSS output without minification.

* update `--minify` description

* update changelog
2024-03-08 18:36:07 +01:00
Robin Malfait dc9c890a34 bump versions to 4.0.0-alpha.6 2024-03-07 16:00:23 +01:00
Robin Malfait f8181bf614 bump versions to 4.0.0-alpha.5 2024-03-07 00:40:10 +01:00
Robin MalfaitandGitHub 6d7abe1338 bump versions to 4.0.0-alpha.4 (#13113) 2024-03-06 21:00:27 +01:00
Robin Malfait 066ad59b75 bump versions to 4.0.0-alpha.3 (#13106) 2024-03-06 17:27:17 +01:00
Robin Malfait 76ff6e7985 bump versions to 4.0.0-alpha.2 2024-03-06 15:13:45 +01:00
Robin MalfaitandGitHub cf0d8dd1ee Copy README file to every package (#13096)
* copy README file to every package

* point workflow status badge to correct workflow file
2024-03-06 08:49:31 -05:00
Robin MalfaitandGitHub 78713b3712 Move the CLI to its own package @tailwindcss/cli (#13095)
* move `cli` to its own package `@tailwindcss/cli`

* minify builds when using `tsup`

* prefer tsup cli flag over tsup.config.ts file

* add `--clean`, to make sure `dist/` folders are cleaned before building

* make CLI esm only

* use version of `tailwindcss` instead of the version of `@tailwindcss/cli`
2024-03-06 05:41:12 -05:00
Robin MalfaitandGitHub b6e1cfd523 Prep alpha release (#13089)
* use `next` as default release channel

* bump versions to `4.0.0-alpha.1`
2024-03-05 14:46:10 -05:00
Robin Malfait a9cdd716c3 introduce v4 codebase 2024-03-05 14:29:15 +01:00