Open Semigradsky opened 3 years ago
Sure looks to be! :facepalm:
I didn't realize that cssnano was composed of small plugins that can be used individually. And even if I had, I probably wouldn't have thought to look there (I thought cssnano was mainly focused on minification, though I guess the single-value syntax is mostly shorter than the two-value equivalents and normalizing them everywhere probably helps with GZIP compression a tiny bit...)
It looks like postcss-normalize-display-values doesn't support using the two-value versions in either order (inline flex
and flex inline
should both be allowed, if I understand the spec correctly). I'll see about making a PR for that on the cssnano repository.
In any case, it looks like this plugin is redundant with one that already exists and can be archived. Thanks for pointing this out to me.
https://www.npmjs.com/package/postcss-normalize-display-values
https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-display-values