Created
July 22, 2022 16:18
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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