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 Sep 11, 2021. It is now read-only.
I followed all 8 videos of '01-getting-up-and-running'.
In the 8th video, I ran the example to 'purgecss' and I can see the css is much smaller like 2kb. All good.
Issue
Now if I modify anything in my index.html the build cannot find CSS elements anymore. Here is my repo .
Error
➜ 01-getting-up-and-running git:(edge) ✗ npm run build
> [email protected] build /Users/andy_lap/Documents/github/pascalandy/tw-demo/01-getting-up-and-running
> postcss css/tailwind.css -o public/build/tailwind.css
CssSyntaxError: /Users/andy_lap/Documents/github/pascalandy/tw-demo/01-getting-up-and-running/css/tailwind.css:4:5: `@apply` cannot be used with `.px-5` because `.px-5` either cannot be found, or its actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that `.px-5` exists, make sure that any `@import` statements are being properly processed *before* Tailwind CSS sees your CSS, as `@apply` can only be used for classes in the same CSS tree.
2 | @tailwind components;
3 | .btn {
> 4 | @apply px-5 py-7 inline-block rounded-lg shadow-lg bg-indigo-500 text-sm text-white uppercase tracking-wider font-semibold;
| ^
5 | }
Thank you!
The text was updated successfully, but these errors were encountered:
pascalandy
changed the title
Can't find CSS element after using purgecss.
Can't find CSS elements after using purgecss
Mar 2, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I followed all 8 videos of '01-getting-up-and-running'.
In the 8th video, I ran the example to 'purgecss' and I can see the css is much smaller like 2kb. All good.
Issue
Now if I modify anything in my index.html the build cannot find CSS elements anymore. Here is my repo .
Error
Thank you!
The text was updated successfully, but these errors were encountered: