emilkowalski / sonner

An opinionated toast component for React.
https://sonner.emilkowal.ski
MIT License
7.69k stars 237 forks source link

Include styles.css in dist #446

Open kevlened opened 3 weeks ago

kevlened commented 3 weeks ago

Issue:

Related-to https://github.com/emilkowalski/sonner/issues/386

Granted, this should be seen as a workaround, since the css is already bundled in the js. The root cause of Remix's spotty support for sonner is unclear, but referencing the css directly works for me:

import sonnerStyles from 'sonner/dist/styles.css?url'

export const links: LinksFunction = () => [
    { rel: 'stylesheet', href: sonnerStyles },
]

What has been done:

Screenshots/Videos:

N/A

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 5:03pm
DiederikvandenB commented 2 weeks ago

Also see https://github.com/emilkowalski/sonner/issues/246