27 Commits

Author SHA1 Message Date
Navith
d4bd2d0b05
Make purge still preserve HTML elements for user-defined extractors (#2704)
* Add failing test for purge preserving element selectors when `defaultExtractor` is overridden

* `preserveHtmlElements` works with user-defined purge extractors
2020-10-31 10:02:40 -04:00
Adam Wathan
dc7c477326 Remove unused import 2020-10-18 15:43:50 -04:00
Adam Wathan
b008d0c08a Remove 'conservative' purge mode 2020-10-18 15:43:50 -04:00
Adam Wathan
38b4eeb288 Prettier likes parens a lot now
git blame is now broken forever.
2020-10-16 15:39:44 -04:00
Adam Wathan
e3ed12782f Update prettier 2020-10-16 13:30:06 -04:00
Adam Wathan
a4b30a0115
Safeguard against trailing slash in purge matches (#2364) 2020-09-10 14:44:48 -04:00
Adam Wathan
45cf3c595e
Fix issue where inserting extra PurgeCSS control comments could break integrated PurgeCSS support (#2331) 2020-09-05 23:35:16 -04:00
Adam Wathan
58781b517d Only warn about conservative purge mode once per process 2020-09-05 17:41:05 -04:00
Adam Wathan
d44e75fc79
Purge layers by default, deprecate conservative mode (#2288)
* Purge `layers` by default, deprecate `conservative` mode

* Ensure base styles are wrapped in @layer

* Update processPlugins test
2020-09-02 14:42:27 -04:00
Adam Wathan
aae71c5249
Preserve HTML elements by default when purging unused styles (#2283) 2020-09-01 16:20:16 -04:00
Adam Wathan
2d090feb98 Only log purge notice once per process 2020-08-19 10:56:51 -04:00
Adam Wathan
cef0b84abf Reorganize prototype code 2020-08-14 12:23:28 -04:00
Adam Wathan
5b19a41195 Convert layers to control comments before processing @apply rules 2020-07-15 09:41:19 -04:00
Adam Wathan
b69e46cc1b Rename buckets to layers, handle copying layer information to responsive variants 2020-07-15 09:25:22 -04:00
Adam Wathan
c184e5b7b3 Don't remove comments that are never added 2020-07-14 20:57:04 -04:00
Adam Wathan
4169bb1ac2 Simplify implementation, remove unnecessary new features 2020-07-14 20:53:18 -04:00
Adam Wathan
fc1d4c4cb1 Intermingle component and utility screens 2020-07-14 16:41:41 -04:00
Adam Wathan
9959b1f691 Add first-class support for "responsive" components and bucket children 2020-07-14 14:32:14 -04:00
frederikhors
822689f38b
Unnecessary escape character
Unnecessary escape character: [. (eslint: no-useless-escape)
2020-05-24 16:47:23 +02:00
Adam Wathan
f79b5c2675 Improve PurgeCSS warning 2020-05-06 08:48:55 -04:00
Adam Wathan
ab52a8c082 Support purge: false, add more info to console warning 2020-05-01 08:25:45 -04:00
lihbr
9863723390 style: lint changes 2020-04-30 19:08:06 +02:00
lihbr
14113707df fix: purgeEnabled evaluating to true when config.purge.enabled is false 2020-04-30 18:43:56 +02:00
Adam Wathan
9032ff33ed Improve support for purging Haml even more 2020-04-30 08:40:42 -04:00
Adam Wathan
cdef9c8d4d Improve support for purging Haml templates 2020-04-30 08:33:05 -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
Adam Wathan
64b6c955c7 Improve PurgeCSS integration
- Add better Pug support
- Add "modes", with "all" and "conservative" by default
- Allow passing options through to PurgeCSS
- Rename `paths` to `content` to match PurgeCSS
2020-04-28 09:51:27 -04:00