Skip to content

Commit

Permalink
Small docs tweaks after changes related to Stylis v4 work (emotion-js…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Aug 7, 2020
1 parent 0a2f7c5 commit 30825fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/cache-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ It can be useful to customize emotion's options - i.e. to add custom Stylis plug
/** @jsx jsx */
import { CacheProvider, jsx, css } from '@emotion/react'
import createCache from '@emotion/cache'
import { prefixer } from 'stylis'

const myCache = createCache({
key: 'my-prefix-key',
stylisPlugins: [
/* your plugins here */
customPlugin,
// has to be included manually when customizing `stylisPlugins` if you want to have vendor prefixes added automatically
prefixer
],
})

Expand Down
2 changes: 1 addition & 1 deletion packages/cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ A Stylis plugins that will be run by Stylis during preprocessing. [Read the Styl

> Note:
>
> Prefixer is just a plugin which happens to be put in default `stylisPlugins`. If you plan to use custom `stylisPlugins` and you want to have your styles prefixed automatically you must include prefixer in your custom `stylisPlugins`.
> Prefixer is just a plugin which happens to be put in default `stylisPlugins`. If you plan to use custom `stylisPlugins` and you want to have your styles prefixed automatically you must include prefixer in your custom `stylisPlugins`. You can import `prefixer` from the `stylis` module to do that (`import { prefixer } from 'stylis'`);
### `key`

Expand Down

0 comments on commit 30825fe

Please sign in to comment.