F
Filament9mo ago
nowak

Local development of sortable.js, changes have no effect after npm run build

I tried to make changes to packages/support/resources/js/sortable.js, but it seems like docs-assets/app/public/js/filament/support/support.js is being used by the laravel app instead, and npm run build does not update the public support.js. How do I make sure my changes to sortable.js are visible?
Solution:
It was public/js/filament/support/support.js in my laravel app that was being used instead of packages/support/resources/js/sortable.js from the local filament repo. And to make the changes have an effect, I needed to run php artisan filament:assets to republish the the assets, as mentioned by Dan. Also documented here: https://filamentphp.com/docs/3.x/support/assets...
Jump to solution
1 Reply
Solution
nowak
nowak9mo ago
It was public/js/filament/support/support.js in my laravel app that was being used instead of packages/support/resources/js/sortable.js from the local filament repo. And to make the changes have an effect, I needed to run php artisan filament:assets to republish the the assets, as mentioned by Dan. Also documented here: https://filamentphp.com/docs/3.x/support/assets
Want results from more Discord servers?
Add your server