Skip to content

Commit

Permalink
Add note about "/* @NoFlip */" in readme (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisergiu98 authored Dec 1, 2020
1 parent 77d29d4 commit 97df193
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ function MakeItRTL() {
}
```

<small>This is a fork of `stylis-rtl` for use with styled-components v5+</small>
#### NOTE: Preventing flipping

Because minification removes all comments from your CSS before it passes to `<StyleSheetManager>`, `/* @noflip */` comment won't work.
You will have to either:
- add an exclamation mark at the beginning of the comment, like this `/*! @noflip */`, to prevent it from being removed
- disable minification entirely by setting `minify` to `false` in `.babelrc` (see [styled-components documentation](https://styled-components.com/docs/tooling#minification)).

<small>This is a fork of `stylis-rtl` for use with styled-components v5+</small>

0 comments on commit 97df193

Please sign in to comment.