wire-elements / wire-extender

Wire Extender allows you to embed any Livewire component on any website or even within a static HTML file.
https://wire-elements.dev/blog/embed-livewire-components-using-wire-extender
MIT License
208 stars 6 forks source link

Wrong publish path #6

Closed MasterZydra closed 3 months ago

MasterZydra commented 3 months ago

Hi,

I noticed that the command php artisan vendor:publish --tag=wire-extender published the wire-extender.js to the wrong folder.

According to your documentation it should be in public/vendor/wire-elements/js, but the command publishes it in public/vendor/wire-elements.

Changing WireExtenderServiceProvider.php fixed it for me:

// Line 29
// From:
__DIR__.'/../js' => public_path('vendor/wire-elements'),
// To
__DIR__.'/../js' => public_path('vendor/wire-elements/js'),
PhiloNL commented 3 months ago

Thanks! I've updated the docs instead so it can remain to be vendor/wire-elements.