You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing in dev mode with Leptos and tailwindcss, using the right settings and link attributes works, but when shipping it to prod, it doesn't load. The problem is in the dist folder the type is unknown. It doesn't know from which type is it: text/css, so it doesn't parse. The solution is to create in the index.html a href to a custom created tailwind.css from the tailwind attributes the 3 also listed on the website and put it in dist. As long as the path in dist match the path from the css there it doesn't matter if in main the index.html path doesn't work, because you can safely rely on data-trunk for it.
Its just something I got fixed this way. Hopefully you can fix it for features releases!
The text was updated successfully, but these errors were encountered:
When developing in dev mode with Leptos and tailwindcss, using the right settings and link attributes works, but when shipping it to prod, it doesn't load. The problem is in the dist folder the type is unknown. It doesn't know from which type is it: text/css, so it doesn't parse. The solution is to create in the index.html a href to a custom created tailwind.css from the tailwind attributes the 3 also listed on the website and put it in dist. As long as the path in dist match the path from the css there it doesn't matter if in main the index.html path doesn't work, because you can safely rely on data-trunk for it.
Its just something I got fixed this way. Hopefully you can fix it for features releases!
The text was updated successfully, but these errors were encountered: