-
Notifications
You must be signed in to change notification settings - Fork 215
feat: Yarn PnP support #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -154,7 +134,6 @@ export default async function getClassNames( | |||
browserslist, | |||
}), | |||
modules: { | |||
tailwindcss, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the tailwindcss
here because it won't work without the PnP environment
Wow this is amazing, thanks so much for this @DanSnow! Going to take a look 👍 |
} catch (error) { | ||
throw error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try { ... } finally { ... }
won't swallow the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh cool sorry, my bad 👍 Never seen that before. Feel free to change it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work on yarn workspaces, but works on root project...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it does work, but make sure to include:
{
purge: ['./pages/**/*.{js,jsx,ts,tsx}'],
}
in your tailwind.config.js
Thanks for this extension! It's really useful.
resolved #160