styled-jsx-plugin-postcss
styled-jsx-plugin-postcss copied to clipboard
Make tailwind working
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.