Does this help you ?
export default defineConfig({
plugins: [
laravel([
'resources/sass/app.scss',
'resources/js/app.js',
]),
});
Then in blade.
@vite(['resources/sass/app.scss', 'resources/js/app.js'])
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I had a laravel 7 setup with php 7.2 and mssql. had some issues, posted here also but in the end, client followed my proposal to ues latest version ( they had numerious applications running on old php that is why they wanted this one on php 7.2 also).
So after basic setup I realized laravel now don't use Mix, it uses Vite instead. But I was not able to find reference where it shows the alternative for
mix.copyDirectory('/resoureces/images')
Is this normal in Vite? I have to create a folder in public directory and then place assets there??
Is this normal in Vite? I have to create a folder in public directory and then place assets there??
YES ( https://vitejs.dev/guide/assets.html#the-public-directory )
Please or to participate in this conversation.