Skip to content

Update README.md #29

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update README.md #29

wants to merge 1 commit into from

Conversation

dejurin
Copy link

@dejurin dejurin commented Jan 15, 2025

@import "tailwindcss";
@plugin "tailwind-scrollbar-hide";

This works for TW4, don't need to add legacy JS config.

@import "tailwindcss";
@plugin "tailwind-scrollbar-hide";

This works for TW4, don't need to add legacy JS config.
@reslear
Copy link
Owner

reslear commented Jan 16, 2025

Could you add same to the playground folder, and check?

@quantizor
Copy link

Seems to not work in tw4 + nextjs:

 ⨯ ./app/globals.css
Error evaluating Node.js code
Error: Can't resolve 'tailwind-scrollbar-hide'

@them' in '[redacted]/app'
    [at finishWithoutResolve ([redacted]/node_modules/enhanced-resolve/lib/Resolver.js:564:18)]
    [at [redacted]/node_modules/enhanced-resolve/lib/Resolver.js:656:15]
    [at [redacted]/node_modules/enhanced-resolve/lib/Resolver.js:718:5]
    [at eval ([redacted]/node_modules/tapable/lib/HookCodeFactory.js:33:10)]
    [at [redacted]/node_modules/enhanced-resolve/lib/Resolver.js:718:5]
    [at eval ([redacted]/node_modules/tapable/lib/HookCodeFactory.js:33:10)]
    [at [redacted]/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:89:43]
    [at [redacted]/node_modules/enhanced-resolve/lib/Resolver.js:718:5]
    [at eval ([redacted]/node_modules/tapable/lib/HookCodeFactory.js:33:10)]
    [at [redacted]/node_modules/enhanced-resolve/lib/Resolver.js:718:5]

@reslear
Copy link
Owner

reslear commented Feb 27, 2025

@quantizor how do you use it?

@quantizor
Copy link

quantizor commented Feb 27, 2025

Just using @plugin like in the OP, maybe there is some nuance in package.json settings...

standard tw4+postcss setup in nextjs

I am using bun instead of node, maybe that has some effect.

@reslear
Copy link
Owner

reslear commented Feb 27, 2025

@quantizor if you use @config "../../tailwind.config.js"; works?

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.

3 participants