tailwindcss/packages/@tailwindcss-cli/src/commands
Robin Malfait c550a62be4
[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
..
build [v4] Make CSS optimization and minification configurable (#13130) 2024-03-08 18:36:07 +01:00
help Move the CLI to its own package @tailwindcss/cli (#13095) 2024-03-06 05:41:12 -05:00