tailwind-scrollbar-hide
tailwind-scrollbar-hide copied to clipboard
Update README.md
@import "tailwindcss"; @plugin "tailwind-scrollbar-hide";
This works for TW4, don't need to add legacy JS config.
Could you add same to the playground folder, and check?
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 how do you use it?
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 if you use @config "../../tailwind.config.js"; works?
closed in favor of https://github.com/reslear/tailwind-scrollbar-hide/pull/32