Commit graph

22 commits

Author SHA1 Message Date
Adam Wathan
cfe492220c Refactor duplication 2018-07-11 11:45:45 -04:00
Adam Wathan
cdbea36564 Fallback to shadow table 2018-07-11 09:56:11 -04:00
Adam Wathan
eacc4635b6 Match apply rules against a lookup table instead of searching 2018-02-28 20:34:16 -05:00
Adam Wathan
ec9b9b99bd Add support for making applied rules important 2017-12-13 13:00:37 -05:00
Adam Wathan
88ff6bdbc3 Don't normalize custom property sets in at-apply 2017-12-13 12:51:35 -05:00
Jack McDade
c84886e32e Adjust syntax style to fit standards 2017-12-08 16:15:58 -05:00
Jack McDade
97ef316af8 Prevent @apply from adding !important. 2017-12-08 16:05:54 -05:00
Adam Wathan
7d6d0af65c Add more detail to @apply errors 2017-11-29 10:16:38 -05:00
Adam Wathan
447bc873d8 Prettier-ignore long error strings 2017-11-16 08:16:59 -05:00
Adam Wathan
538a854a73 Don't allow applying classes that appear in multiple rulesets
This can result in unexpected behavior, so explicitly erroring is best.
We can of course add support for this later if we see real value in it
and can come up with predictable rules for how it should work.
2017-11-16 07:54:40 -05:00
Adam Wathan
6807e45e1e Expect onError function is always provided
This can't really be optional.
2017-11-16 07:51:56 -05:00
Adam Wathan
e65b2df5a8 Improve error messages 2017-11-13 11:28:31 -05:00
Adam Wathan
c4305d0c07 Don't allow @applying classes that ever appear inside of an at-rule
This is too complex to easily support; better to explicitly error for
now vs. the current behavior which is just silently doing something
other than you probably expect.
2017-11-10 12:18:20 -05:00
David Hemphill
9dbf5881cd fix eslint issues 2017-11-06 15:00:55 -05:00
David Hemphill
ec607968cf Add ESLinting and Prettier formatting and run an initial format on the codebase 2017-11-06 15:00:00 -05:00
Adam Wathan
b2b95d5738 Register config file with Webpack for watching
This change tells Webpack (for those using it) that the config file
used should be tracked as a dependency and that the CSS should be
re-compiled if that config file changes.

It's careful to make sure the config file is loaded fresh every single
time to avoid weird caching issues.
2017-11-03 09:54:15 -04:00
Adam Wathan
9a880d43ea Escape class names provided in @apply
Without this, can't mixin stuff like .w-1/4.
2017-10-06 15:40:40 -04:00
Adam Wathan
6bbbe47e9b Refactor insertBefore references to simpler before 2017-08-28 11:26:17 -04:00
David Hemphill
2ef01837a9 Convert new stuff to use ES6 modules 2017-08-27 18:02:41 -04:00
Adam Wathan
525146fb32 Format everything uses 2 spaces instead of 4 2017-08-27 18:02:41 -04:00
Adam Wathan
1e1d45e092 Break Tailwind out into 3 private plugins, bake in cssnext and stylefmt 2017-08-27 18:02:41 -04:00
David Hemphill
aa46fb9211 Restructure and add build process 2017-08-27 18:02:41 -04:00