14 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
6a219f927c
add darkMode alternatives as a comment 2020-11-06 14:30:09 +01:00
Adam Wathan
11af870f30
Support extend in variants config (#2651)
* WIP

* It's alive

* Pull default variant order from config
2020-10-23 08:58:28 -04:00
Adam Wathan
b92f033f8b
Disable dark mode by default, rename config option to darkMode (#2631)
* Disable dark mode by default, rename config option to `darkMode`

* Rebuild fixtures
2020-10-20 21:36:05 -04:00
Adam Wathan
31814d6edf Remove future blocks from config stubs 2020-10-18 15:43:50 -04:00
Adam Wathan
9065404f4d Revert "Automatically add featureFlags.future flags to the configuration files whenever the init command is ran (#2379)"
This reverts commit f72158c87f2ac1b1357d856dd79567c4329b5525.
2020-10-16 14:53:21 -04:00
Dexter Marks-Barber
f72158c87f Automatically add featureFlags.future flags to the configuration files whenever the init command is ran (#2379)
* Add --future flag to CLI

* Remove early exit

* Always add future flags but commented out

- Update replace regex

- Remove future CLI flag

- Update tests
2020-10-07 14:12:41 -04:00
Adam Wathan
f2f7d314c4 Reorder entries in simpleConfig stub 2020-09-13 09:09:57 -04:00
Dexter Marks-Barber
2053d630ae
Add future property to simpleconfig stub (#2372)
* Add future property to simpleconfig stub

* Add future flags manually
2020-09-13 09:09:02 -04:00
Adam Wathan
77d3f7590e Don't purge components, don't purge if paths empty, add empty purge to config stub 2020-04-29 16:14:08 -04:00
Nestor Vera
1a71d3311e
Add trailing commas to simpleConfig.stub.js
Makes it consistent with `defaultConfig.stub.js` and saves people like me from adding them manually every time they start a project.
2019-11-04 12:05:27 +01:00
Adam Wathan
d92dae4344 Add extend key to simpleConfig stub by default 2019-05-10 07:57:47 -04:00
Adam Wathan
d0e44dc361 Remove simple config comments 2019-04-26 12:26:15 -04:00
mattstypa
92b3b0c0a1 Updated CLI init commend 2019-03-14 15:51:21 -05:00