Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created July 22, 2022 16:18
Show Gist options
  • Save Shelob9/84e3c55bd834255db8019edd44394cad to your computer and use it in GitHub Desktop.
Save Shelob9/84e3c55bd834255db8019edd44394cad to your computer and use it in GitHub Desktop.
Code for Laravel vite React fast refresh with tailwind https://twitter.com/Josh412/status/1547628986695446530
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.jsx',
refresh: [
'resources/js/app.jsx',
'front-end-client/src/**',
'resources/components/react.blade.php',
],
}),
],
css: {
postCss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment