410 Commits

Author SHA1 Message Date
Robin Malfait
691ed02f63
Remove AOT (#5340)
* make `jit` mode the default when no mode is specified

* unify JIT and AOT codepaths

* ensure `Object.entries` on undefined doesn't break

It could be that sometimes you don't have values in your config (e.g.: `presets: []`), this in turn will break some plugins where we assume we have a value.

* drop AOT specific tests

These tests are all covered by JIT mode already and were AOT specific.

* simplify tests, and add a few

Some of the tests were written for AOT specifically, some were missing. We also updated the way we write those tests, essentially making Tailwind a blackbox, by testing against the final output.
Now that JIT mode is the default, this is super fast because we only generate what is used, instead of partially testing in a 3MB file or building it all, then purging.

* add some todo's to make sure we warn in a few cases

* make `darkMode: 'media'`, the default

This also includes moving dark mode tests to its own dedicated file.

* remove PostCSS 7 compat mode

* update CLI to be JIT-first

* fix integration tests

This is not a _real_ fix, but it does solve the broken test for now.

* warn when using @responsive or @variants

* remove the JIT preview warning

* remove AOT-only code paths

* remove all `mode: 'jit'` blocks

Also remove `variants: {}` since they are not useful in `JIT` mode
anymore.

* drop unused dependencies

* rename `purge` to `content`

* remove static CDN builds

* mark `--purge` as deprecated in the CLI

This will still work, but a warning will be printed and it won't show up
in the `--help` output.

* cleanup nesting plugin

We don't have to duplicate it anymore since there is no PostCSS 7
version anymore.

* make sure integration tests run in band

* cleanup folder structure

* make sure nesting folder is available

* simplify resolving of purge/content information
2021-09-01 17:13:59 +02:00
Robin Malfait
267f20c47e
2.2.9 2021-08-30 13:01:08 +02:00
Robin Malfait
97804a8950
Pin clean css version (#5338)
* pin clean-css to version `5.1.4`

* update fixtures
2021-08-30 13:00:50 +02:00
depfu[bot]
442c6d0d27 Update cosmiconfig to version 7.0.1 2021-08-28 23:03:11 +00:00
depfu[bot]
9ccb280b6d Update autoprefixer to version 10.3.3 2021-08-28 18:47:53 +00:00
depfu[bot]
e316dcb184 Update eslint-plugin-prettier to version 3.4.1 2021-08-27 22:18:32 +00:00
Robin Malfait
211f40b175
2.2.8 2021-08-27 10:37:43 +02:00
depfu[bot]
5f02fe4811 Update clean-css to version 5.1.5 2021-08-26 10:03:09 +00:00
depfu[bot]
048a29ef34 Update cssnano to version 5.0.8 2021-08-25 10:19:37 +00:00
depfu[bot]
ff71165538 Update arg to version 5.0.1 2021-08-24 02:31:30 +00:00
depfu[bot]
4daa86a293 Update @vercel/ncc to version 0.29.2 2021-08-21 22:27:25 +00:00
depfu[bot]
d8b89003a9
Update @vercel/ncc to version 0.29.0 (#5068)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-08-20 22:43:40 -04:00
depfu[bot]
b54d3fc6dd
Update color to version 4.0.1 (#5205)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-08-20 22:43:08 -04:00
depfu[bot]
d13b0e1085 Update node-emoji to version 1.11.0 2021-08-18 09:18:48 +00:00
depfu[bot]
0bb3e74f82 Update all of babel7 to version 7.15.0 2021-08-17 18:34:04 +00:00
depfu[bot]
ca6900dc35 Update eslint to version 7.32.0 2021-08-14 22:18:42 +00:00
depfu[bot]
4d758ed624 Update chalk to version 4.1.2 2021-08-06 12:33:00 +00:00
depfu[bot]
66b9259a5d Update clean-css to version 5.1.4 2021-08-05 10:03:02 +00:00
depfu[bot]
2eb7b4e5f1 Update postcss-nested to version 5.0.6 2021-08-04 10:49:11 +00:00
depfu[bot]
e233288c4d Update glob-parent to version 6.0.1 2021-07-31 10:55:33 +00:00
depfu[bot]
e369dbd8ed Update all of babel7 to version 7.14.8 2021-07-31 10:54:52 +00:00
depfu[bot]
370ea8b3f2 Update postcss to version 8.3.6 2021-07-31 10:54:44 +00:00
depfu[bot]
4f89bbf713 Update cssnano to version 5.0.7 2021-07-30 22:41:14 +00:00
depfu[bot]
9c63e50edd Update eslint to version 7.31.0 2021-07-30 22:32:58 +00:00
Adam Wathan
5100270bed 2.2.7 2021-07-23 07:48:52 -04:00
Adam Wathan
4d598d59aa 2.2.6 2021-07-21 15:43:37 -04:00
Adam Wathan
c1c5cf0923 2.2.5 2021-07-21 09:13:16 -04:00
Hunter Tunnicliff
a23065353a
Update color to v3.2.0 (#4999) 2021-07-17 15:23:36 -04:00
depfu[bot]
95688ba8d5 Update autoprefixer to version 10.3.1 2021-07-17 11:33:03 +00:00
depfu[bot]
afd132ef6e Update fast-glob to version 3.2.7 2021-07-15 19:49:00 +00:00
depfu[bot]
6acb051f67 Update eslint to version 7.30.0 2021-07-09 22:33:10 +00:00
depfu[bot]
fbe5be81ce Update postcss to version 8.3.5 2021-07-09 03:04:01 +00:00
depfu[bot]
34de2c8678 Update fast-glob to version 3.2.6 2021-07-04 17:32:52 +00:00
depfu[bot]
fc0cca4ee1 Update all of jest to version 27.0.6 2021-07-04 12:32:43 +00:00
depfu[bot]
b72bae7312 Update prettier to version 2.3.2 2021-07-03 10:48:04 +00:00
depfu[bot]
dc0a0634aa Update clean-css to version 5.1.3 2021-07-02 10:49:02 +00:00
Sergey Tatarintsev
2166b76c53
Improve production build performance for the case of many small non-tailwind stylesheets (#4644)
* Improve `purge` performance in layers mode

In layers mode, skip `purgecss` completely if source stylesheet does
not have any tailwind layers. For the legacy codebases with a lot of
non-tailwind stylesheets, it dratically improves the performance of
the production build.

* fix: purgecss should respect safelist.variables
2021-07-01 14:25:06 -04:00
depfu[bot]
bf482112a6 Update didyoumean to version 1.2.2 2021-07-01 14:21:43 +00:00
Adam Wathan
d852de6785 2.2.4 2021-06-23 15:27:53 -04:00
Adam Wathan
1eacfb9884 Remove postinstall script 2021-06-23 15:27:47 -04:00
Adam Wathan
041eed0d46 2.2.3 2021-06-23 14:32:18 -04:00
Sachin Raja
c0ee52060c
Generate plugin list file (#4725)
* Generate plugin list file

Removes the importing of all plugins in src/util/resolveConfig to avoid importing CSS.
Import the built plugin list file instead.

* Use `process.cwd()` instead of `__dirname` to resolve path

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* Import core plugin list in resolveConfig test

* Generate plugin list prebabelify and on install

* Move generation from install to postinstall

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-06-23 14:13:03 -04:00
depfu[bot]
b7b2db2592 Update chokidar to version 3.5.2 2021-06-22 13:48:26 +00:00
depfu[bot]
987374fea4 Update @babel/core to version 7.14.6 2021-06-21 22:18:45 +00:00
depfu[bot]
7a8f7e2ff5 Update postcss-load-config to version 3.1.0 2021-06-21 11:47:52 +00:00
depfu[bot]
ff14cb5ada Update cssnano to version 5.0.6 2021-06-18 18:19:00 +00:00
Robin Malfait
9e77d743c3
2.2.2 2021-06-18 16:35:36 +02:00
Robin Malfait
2fd6575095
2.2.1 2021-06-18 15:42:31 +02:00
Adam Wathan
0bc3eeb0f6 2.2.0 2021-06-17 12:01:32 -04:00
Robin Malfait
674d79d0ac
move cssnano to devDependencies 2021-06-17 17:54:32 +02:00