tailwindcss/perf/tailwind.config.js
Robin Malfait eac11cf57d
Performance improvements + memory leak fix (#3032)
* fix memory leak

* add optional condition to hasAtRule

* use known tree to handle `@apply` when required `@tailwind` at rules exists

Otherwise we will generate the lookup tree.

* only generate the missing `@tailwind` atrules when using `@apply`

* update perf config to reflect 2.0 changes

* update changelog

* ensure lookup tree is correctly cached based on used tailwind atrules
2020-12-11 15:03:49 +01:00

23 lines
346 B
JavaScript

let colors = require('../colors')
module.exports = {
purge: [],
darkMode: 'class',
theme: {
extend: { colors },
},
variants: [
'responsive',
'group-hover',
'group-focus',
'hover',
'focus-within',
'focus-visible',
'focus',
'active',
'visited',
'disabled',
'checked',
],
plugins: [],
}