tailwindcss/integrations
Robin Malfait 40f6b4ff64
Fix missing PostCSS dependencies in the CLI (#9617)
* Record and watch PostCSS dependencies in the CLI

* ensure `changedContent` gets cleared

Otherwise this list gets bigger and bigger, not only that there is a
subtle bug. The moment you save a `.css` file we want to create a new
context and start from scratch. However, since the list was never
cleared, it meant that every subsequent save to *any* file (not only
config / css files) creates a new context...

By clearing the least we should work around this problem.

* add test that verifies an odd bug

The story goes like this:

1. add `underline` to html file
  -> css contains `underline` rule
2. add `font-bold` to html file
  -> css contains `underline` and `font-bold`
3. remove `underline` from html file
  -> css still contains `underline` and `font-bold` for performance reasons
4. Save a css file (! RED FLAG)
  -> css contains `font-bold` because we started from scratch
5. add `underline` to html file
  -> css contains `underline` and `font-bold`
6. remove `underline` from html file
  -> css only contains `font-bold`... (UH OH)

This is because the moment we did step 4, every single save in any file created a new context. Every. Single. Time.

* use a property that doesn't require `autoprefixer`

* update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-10-20 18:01:39 +02:00
..
content-resolution Allow resolving content paths relative to the config file (#9396) 2022-09-23 08:09:02 -04:00
parcel Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
postcss-cli Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
rollup Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
rollup-sass Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
tailwindcss-cli Fix missing PostCSS dependencies in the CLI (#9617) 2022-10-20 18:01:39 +02:00
vite Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
webpack-4 Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
webpack-5 Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
.gitignore Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
execute.js Allow resolving content paths relative to the config file (#9396) 2022-09-23 08:09:02 -04:00
io.js Setup integration tests (#5466) 2021-09-14 16:18:14 +02:00
package-lock.json Update integration tests (#8386) 2022-05-19 16:44:20 -04:00
package.json Setup integration tests (#5466) 2021-09-14 16:18:14 +02:00
resolve-tool-root.js Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
syntax.js Improve css expectations in tests (#5819) 2021-10-18 12:08:48 +02:00