styled-jsx-plugin-postcss icon indicating copy to clipboard operation
styled-jsx-plugin-postcss copied to clipboard

Make tailwind working

Open janvogt opened this issue 4 years ago • 0 comments

Before this change using @tailwind directive in styled-jsx component lead to

styled-jsx-plugin-postcss] postcss failed with TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type boolean (false)

According to postcss documentation (https://postcss.org/api/#processoptions) the 'from' option should be a string of the filename. We should get this filename as options.babel.filename (See: https://github.com/vercel/styled-jsx#plugin-options).

Since we don't use the source maps they are now disabled as well.

janvogt avatar Mar 26 '21 09:03 janvogt