tailwind-scrollbar-hide icon indicating copy to clipboard operation
tailwind-scrollbar-hide copied to clipboard

Update README.md

Open dejurin opened this issue 10 months ago • 5 comments

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

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

dejurin avatar Jan 15 '25 19:01 dejurin

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

reslear avatar Jan 16 '25 09:01 reslear

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]

quantizor avatar Feb 27 '25 17:02 quantizor

@quantizor how do you use it?

reslear avatar Feb 27 '25 17:02 reslear

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.

quantizor avatar Feb 27 '25 17:02 quantizor

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

reslear avatar Feb 27 '25 17:02 reslear

closed in favor of https://github.com/reslear/tailwind-scrollbar-hide/pull/32

reslear avatar May 30 '25 17:05 reslear