diff --git a/app/Console/Commands/ReactBuilder.php b/app/Console/Commands/ReactBuilder.php new file mode 100644 index 000000000000..4081e76846e6 --- /dev/null +++ b/app/Console/Commands/ReactBuilder.php @@ -0,0 +1,88 @@ +getFileName(), '.js')) { + + if(str_contains($file->getFileName(), 'index.')){ + + $includes .= ''."\n"; + + } + else{ + + $includes .= ''."\n"; + } + + } + + + if(str_contains($file->getFileName(), '.css')) { + + $includes .= ''."\n"; + + } + + } + + file_put_contents(resource_path('views/react/head.blade.php'), $includes); + + } + + +} diff --git a/resources/views/react/head.blade.php b/resources/views/react/head.blade.php new file mode 100644 index 000000000000..3c3109448361 --- /dev/null +++ b/resources/views/react/head.blade.php @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +