Skip to content

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

Closed
wants to merge 12 commits into from
Closed

Conversation

DanSnow
Copy link
Contributor

@DanSnow DanSnow commented Aug 23, 2020

Thanks for this extension! It's really useful.

resolved #160

@@ -154,7 +134,6 @@ export default async function getClassNames(
browserslist,
}),
modules: {
tailwindcss,
Copy link
Contributor Author

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

@bradlc
Copy link
Contributor

bradlc commented Aug 27, 2020

Wow this is amazing, thanks so much for this @DanSnow! Going to take a look 👍

Comment on lines +79 to +80
} catch (error) {
throw error
Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link

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...

Copy link

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

@bradlc bradlc closed this Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yarn Plug'n'Play support
3 participants