Skip to content

Instantly share code, notes, and snippets.

@nasir-mandal
Created May 10, 2023 09:37
Show Gist options
  • Save nasir-mandal/d5de305f6b010a7ae4513d28f90224a4 to your computer and use it in GitHub Desktop.
Save nasir-mandal/d5de305f6b010a7ae4513d28f90224a4 to your computer and use it in GitHub Desktop.
Laravel vite.config.js for Obuntu
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
import { homedir } from 'os';
import { resolve } from 'path';
// Ignore the protocol on the host, ie do not put "http"
const host = 'domain-name';
export default defineConfig({
server: {
host,
hmr: { host },
},
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