-
Notifications
You must be signed in to change notification settings - Fork 16
Update for Laravel 6 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We need to account for the fact that the default Bootstrap preset has been extracted to a separate package in laravel/ui and install this, before being able to run the Inertia.js preset over the top of it.
Typically you'll install the composer preset as a dev dependency, and may remove it for production, but we still need the inertia-laravel dependency in prod, otherwise everything breaks when it's removed.
|
Curious, why do we even need the Bootstrap stuff for Inertia? |
|
The default views use Bootstrap because that’s what was included with Laravel when the initial version was built. They’d probably otherwise not be very exciting, or we’d have to make a decision on a) what to style them with or b) whether to include them at all. |
|
@reinink I've scrapped Bootstrap entirely, pulling in Tailwind (CDN version, to keep dependencies as light as possible). I also found a way (per-Telescope) to inject a service provider into the |
reinink
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Using the CDN is a great way of handing this! 👌

We need to account for the fact that the default Bootstrap preset has been extracted to a separate package in laravel/ui and install this, before being able to run the Inertia.js preset over the top of it.