zapier / babel-preset-zapier

🏯 A babel preset for Zapier
0 stars 1 forks source link

Remove autoLabel for `development` #34

Closed msholty-fd closed 4 years ago

msholty-fd commented 4 years ago

The css function has a default functionality of formatting your css classNames as such:

css-${hash}-{__filename}--{variableName}

Since we have autoLabel set as true, this does not happen (even with labelFormat set!)

See the difference:

Before

After

Composing styles is easy!

If you use the css={[styles.root, styles.rootSmall]} syntax, it will still produce developer friendly css classNames:

Note: This PR makes no changes to production CSS classes