rudy
rudy
FFilament
Created by rudy on 4/16/2024 in #❓┊help
Styles don't work with third party on publish, works just fine on local machine
found the solution, turns out either vite or blade or laravel (not sure), doesn't allow you to combine the custom js file and the styling in one directive CMMIW, after creating a "placeholder" which is just an empty js file, and importing that directive as a couple with the css file, it worked as intended, here's what I did to fix it, to illustrate my phrasing better:
@vite('resources/js/filament/timeline.js')
@vite(['resources/css/timestyle.css', 'resources/js/timestyle.js'])
@vite('resources/js/filament/timeline.js')
@vite(['resources/css/timestyle.css', 'resources/js/timestyle.js'])
thanks guys 🙂
8 replies
FFilament
Created by rudy on 4/16/2024 in #❓┊help
Styles don't work with third party on publish, works just fine on local machine
I did run it, it's still not loading when I only build them, both in dev and in prod, it's loading properly when I'm running dev though
8 replies
FFilament
Created by rudy on 4/16/2024 in #❓┊help
Styles don't work with third party on publish, works just fine on local machine
ah, you guide me to the right direction, somehow when I only build npm build the styles don't get loaded, but when I npm run dev it's running properly
8 replies
FFilament
Created by rudy on 4/16/2024 in #❓┊help
Styles don't work with third party on publish, works just fine on local machine
None
8 replies