Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gizmojo's avatar

Vite with custom build path

I've updated my vite config (also cleared the cache numerous times) but I still need to pass the build path. Am I doing something wrong?

href="{{ \Illuminate\Support\Facades\Vite::asset('resources/js/app.js', config('vite.configs.default.build_path')) }}">

@vite(['resources/css/app.css', 'resources/js/app.js'], config('vite.configs.default.build_path'))

vite.php

'configs' => [
    'default' => [
       //
        'build_path' => 'build/main',
    ],
0 likes
0 replies

Please or to participate in this conversation.