csstools / postcss-short

Use advanced shorthand properties in CSS
https://jonathantneal.github.io/postcss-short
Creative Commons Zero v1.0 Universal
189 stars 7 forks source link

Config to indicate skipped token #8

Closed maraisr closed 7 years ago

maraisr commented 8 years ago

I've been using postcss-position (after having had a @include position() approach, and various @include size(48px) sass mixins for quite some time now to give me this "shorthand" approach.

I used false as my token to indicate to skip the clockwise step. Now you're using *, is there someway I could set a config to use both * and false as I slowly phase out the false, so I can find-replace the @include X? Or just write some funky regex to replace the falses after the @include X, if there aren't enough consensus for this mod?

(I'd also be happy to make the mod as PR, if you're tight for time)

Love the module mate, elegantly executed, clean API and modular!

jonathantneal commented 7 years ago

I’ve updated every single postcss short plugin to allow you to change the skip token like so: { skip: "*" }.

maraisr commented 7 years ago

Thank you so much @jonathantneal