You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Describe the bug
Building a site with Gatsby. Using PurgeCSS as a PostCSS plugin after Tailwind. When PurgeCSS is active, the body tag is stripped of all styling, and the user-agent (browser) defaults to an 8px margin on all sides.
This despite having
body {
@apply m-0 bg-gray-300 /* tailwind syntax */
}
in my global.css file. As soon as I remove PurgeCSS from the build, everything works fine, the body margins go to zero and the background is grey.
open browser, see lack of body styling. other styles are fine!
Expected behavior
Everything else related to PurgeCSS works great. It stripped 600kb out of my bundle. But it appears the body tag is immune or incompatible or something.
Desktop (please complete the following information):
OS: Windows 10
postcss-purgecss v. 1.3.0
Gatsby version 2.15.20, Gatsby CLI version 2.7.49
Additional context
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Describe the bug
Building a site with Gatsby. Using PurgeCSS as a PostCSS plugin after Tailwind. When PurgeCSS is active, the
body
tag is stripped of all styling, and the user-agent (browser) defaults to an 8px margin on all sides.This despite having
in my global.css file. As soon as I remove PurgeCSS from the build, everything works fine, the
body
margins go to zero and the background is grey.To Reproduce
gatsby build
gatsby serve
body
styling. other styles are fine!Expected behavior
Everything else related to PurgeCSS works great. It stripped 600kb out of my bundle. But it appears the
body
tag is immune or incompatible or something.Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: