PostCSS Inline Rtl
PostCSS plugin to inline the minimal amount of RTL CSS you need.
Requirement
Always have a dir="ltr"
or dir="rtl"
in your HTML tag.
Examples
/* Normal code */ /* => no change */
/* Converts to: */
/* converts to: */
/* Edge case (cancelling LTR/RTL values) */ /* converts to: */
/* Edge case (RTL-invariant) + CSS modules */ /* Converts to: */
Usage
Cred
+1 for rtlcss, as this wouldn't exist without it!
See PostCSS docs for examples for your environment.