Emotion: Extract css

Created on 24 Aug 2017  路  4Comments  路  Source: emotion-js/emotion

I found that css styles are not extracted, so my PostCSS plugins don't apply.

const body = css`
  clear: fix;
`

It is by design, or I did something wrong?

Most helpful comment

Yeap, it was my fault. Sorry for attention. You did a great work and support works perfectly.

All 4 comments

That's strange, css styles should be extracted(assuming they don't have any interpolations and extractStatic is set in the babel config), I just tested it with an ejected CRA and it worked.

Oops. Maybe my fail again (should test better before creating issue 馃槄).

I will send more details tomorrow.

Yeap, it was my fault. Sorry for attention. You did a great work and support works perfectly.

I will try to investigate more deeper before open a issue next time :sweat:

Was this page helpful?
0 / 5 - 0 ratings