Skip to content
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

Add instructions for Laravel Vite #261

Open
JusstPaul opened this issue Oct 24, 2022 · 2 comments
Open

Add instructions for Laravel Vite #261

JusstPaul opened this issue Oct 24, 2022 · 2 comments

Comments

@JusstPaul
Copy link

As Laravel 9.x onwards, vite has replaced mix as the default asset bundler. Setting up instructions on how to setup a new Laravel Inertia project from scratch would be incredibly helpful for people who do not want to start with templates.

I'm also interested in working on this but I want to know how this project wants to implement this first. Thank you.

@MarkSemaan
Copy link

Yes I keep setting up new projects only to find a blank screen until I found out I should replace

 <link href="{{ mix('/css/app.css') }}" rel="stylesheet" />
 <script src="{{ mix('/js/app.js') }}" defer></script>

With

@vite('resources/js/app.js')
@vite('resources/css/app.css')

@kevinpallado
Copy link

@MarkSemaan are you using .js extension on your project? can you share how you setup your app.js as I am having error build on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants