Oct 28, 2022
0
Level 3
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',
],
Please or to participate in this conversation.