Created
May 10, 2023 09:37
-
-
Save nasir-mandal/d5de305f6b010a7ae4513d28f90224a4 to your computer and use it in GitHub Desktop.
Laravel vite.config.js for Obuntu
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'; | |
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