Created
April 25, 2023 13:43
-
-
Save muath-ye/42d04aee6e889682f8bd2dd32c32f93d to your computer and use it in GitHub Desktop.
Fix Laravel vite config on shared hosting
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/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