eidellev / inertiajs-adonisjs

279 stars 17 forks source link

How to use css in vue3 and ssr #82

Closed fengzi91 closed 2 years ago

fengzi91 commented 2 years ago

How to include the css file inertia/ssr/ssr.css in app.edge? Thanks.

eidellev commented 2 years ago

@fengzi91 to the best of my understanding you don't need to include it at all since it's identical to your regular app.css. I need to investigate how this is handled in laravel for comparison.

Is there a reason you need to include ssr.css and not app.css?

fengzi91 commented 2 years ago

This is an example project https://github.com/fengzi91/adonis-inertia-vue-ssr.git

I used tailwindcss but when I visit the page http://localhost:3333 ssr is works fine, but the css styles is not works. I found the file inertia/ssr/ssr.css is the complied css file, but the file is doesnt include in the app.edge or http://localhost:3333 page.

@eidellev I am using adonisjs for the first time, maybe I am using it in the wrong way, thank you very much for helping me.