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
fe0e8e92de
Rename whitespace-no-wrap to whitespace-nowrap ( #2664 )
...
* Rename whitespace-no-wrap to whitespace-nowrap
* Update changelog
* Update purge fixture
2020-10-23 15:12:42 -04:00
Adam Wathan
b008d0c08a
Remove 'conservative' purge mode
2020-10-18 15:43:50 -04:00
Adam Wathan
9d40ef519c
Remove default values from config that have default values even when not present at all
2020-10-18 15:43:50 -04:00
Adam Wathan
21d4b8c787
Apply new prettier defaults
2020-10-17 20:34:11 -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
depfu[bot]
8e4e0a0eb8
Upgrade @fullhuman/postcss-purgecss: 2.3.0 → 3.0.0 (major) ( #2589 )
...
* Update @fullhuman/postcss-purgecss to version 3.0.0
* Replace whitelist with safelist
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2020-10-16 15:36:41 -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
Robin Malfait
4c4c5a3834
Fix purging in 1.8 ( #2320 )
...
* re-add missing `@layer`'s for responsive rules
* use toMatchCss for better diffing
* do not wrap user `@responsive` rules in an `@layer`
2020-09-04 18:36:50 -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
Keunbae Park
455b56164b
fix typo ( #2276 )
...
* fix typo
* Update purgeUnusedStyles.test.js
2020-08-31 09:11:24 -04:00
Robin Malfait
ce75f65347
use explicit .then and .catch instead of .finally for node 8.x
2020-08-28 15:32:42 +02:00
Robin Malfait
62eaac4b08
suppress console.warn logs in tests
...
This makes the test output a bit nicer to look at
2020-08-28 08:53:39 -04:00
Adam Wathan
2903811767
Add test coverage for purging with important string
2020-08-20 13:25:18 -04:00
Adam Wathan
ab52a8c082
Support purge: false, add more info to console warning
2020-05-01 08:25:45 -04:00
lihbr
ddc6e1d191
test: add test for purge being explicitly disabled
2020-04-30 19:13:48 +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