Skip to content

Instantly share code, notes, and snippets.

@crzapata
Created January 22, 2023 14:05
Show Gist options
  • Save crzapata/43f5d7da85a4df23aa09eff5d04d935c to your computer and use it in GitHub Desktop.
Save crzapata/43f5d7da85a4df23aa09eff5d04d935c to your computer and use it in GitHub Desktop.
Workaround for TailwindCSS styles not downloading in Laravel 9
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
server: {
hmr: {
host: 'localhost'
}
},
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
],
refresh: true,
}),
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment