ijpatricio / minglejs-demo

Sample usage of JS components in a Laravel Livewire project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making $scriptPath configurable

ijpatricio opened this issue · comments

Turn into an overridable default.

$scriptPath = 'resources/js/mingles/' . $this->component();

It is now explicit.

Use it just as in vite.config.js

    public function component(): string
    {
        return 'resources/js/mingles/HelloWorld/index.jsx';
    }