laravel-preset-react-app

Add config to integrate React with Laravel app.

Usage no npm install needed!

<script type="module">
  import laravelPresetReactApp from 'https://cdn.skypack.dev/laravel-preset-react-app';
</script>

README

Install and config

Install preset react for existed Laravel app

  • Run command to install : npm install -g laravel-preset-react-app
  • After that, go to your current Laravel project directory
  • Check if there is no package.json, then create file package.json in Laravel project directory.
  • Run command : preset-react-app
  • Done

How it works

  • This module will auto generate webpack config for Reactjs.
  • Provide script to build, dev.
  • Output will go to public/build directory.