Skip to content

Commit

Permalink
Fix: React SSR installation error (#169)
Browse files Browse the repository at this point in the history
* Fix: React SSR installation error

* Update InstallsInertiaStacks.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
renomureza and taylorotwell authored Jul 11, 2022
1 parent 326c8f9 commit f2f3e45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Console/InstallsInertiaStacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ protected function installInertiaReactStack()
copy(__DIR__.'/../../stubs/inertia-common/jsconfig.json', base_path('jsconfig.json'));
copy(__DIR__.'/../../stubs/inertia-react/vite.config.js', base_path('vite.config.js'));
copy(__DIR__.'/../../stubs/inertia-react/resources/js/app.jsx', resource_path('js/app.jsx'));
unlink(resource_path('js/app.js'));

if (file_exists(resource_path('js/app.js'))) {
unlink(resource_path('js/app.js'));
}

$this->replaceInFile('.vue', '.jsx', base_path('tailwind.config.js'));

Expand Down

0 comments on commit f2f3e45

Please sign in to comment.