i also started learning inertia JS with react, I think standard webpage structure would be the best option!!
Aug 9, 2023
3
Level 1
Where to put assets CSS and JS in app.blade.php ?
When I look at the Inertia Server-side Setup documentation, they look like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
@vite('resources/js/app.js')
@inertiaHead
</head>
<body>
@inertia
</body>
</html>
However, when building a monolith app whether using an existing free template, or creating your own, you'll certainly have your own CSS and JS which you will link them in app.blade.php. CSS in the head, and JS in the body (usually).
My question is, for CSS where should I put my assets?
Above or below this code?
@vite('resources/js/app.js')
@inertiaHead
And for my JS assets, should I put it above or below this code?
@inertia
Thank you in advance.
Please or to participate in this conversation.