mihatorikei / codeigniter-vitejs

ViteJS Integration For Codeigniter4 🔥⚡
MIT License
89 stars 10 forks source link

Bug Decorator #23

Open adnduweb opened 1 year ago

adnduweb commented 1 year ago

CodeIgniter version: Package version: "mihatori/codeignitervite": "^1.1", "codeigniter4/framework": "4.2.6",

Describe the bug

I installed Codeigniter/Shield with Codeigniter fast. When I extend my basic layout, the js resource is doubled and there are two "

"

Expected behavior That everything works properly :)

Additional context Correction Mihatori\CodeigniterVite\Decorator after Line 17, add :

if (preg_match('/<div id=\"app\">/', $html, $matches)) { return $html; }

jaguarch commented 1 year ago

Thanks for that but you can instead disable auto injection from .env file and use the package helper