mihatorikei / codeigniter-vitejs

ViteJS Integration For Codeigniter4 🔥⚡
MIT License
93 stars 11 forks source link

Decorator not running automatically #30

Open NTICompass opened 7 months ago

NTICompass commented 7 months ago

CodeIgniter version: 4.4.8 Package version: 1.1.1

Describe the bug Decorator does not run automatically. I don't know if I am missing a step in the setup, but I have everything set up and it's not loading and running the decorator to add the vite JS/CSS tags.

Expected behavior I expect to see the vite/vue JS files added to the page to that everything works.

Additional context I had to manually call \Mihatori\CodeigniterVite\Vite::tags() and then manually add the JS and CSS to my page. Why is it not automatically doing this? What am I missing? I am also mixing this with https://github.com/amiranagram/inertia-codeigniter-4 but I don't think that's the issue. Because now that I am manually calling \Mihatori\CodeigniterVite\Vite::tags(), everything including inertia is working.