Skip to content

Instantly share code, notes, and snippets.

@muath-ye
Created April 25, 2023 13:43
Show Gist options
  • Save muath-ye/42d04aee6e889682f8bd2dd32c32f93d to your computer and use it in GitHub Desktop.
Save muath-ye/42d04aee6e889682f8bd2dd32c32f93d to your computer and use it in GitHub Desktop.
Fix Laravel vite config on shared hosting
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
],
buildDirectory: '../../../public_html/build',
refresh: true,
}),
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment