codeigniter-vitejs icon indicating copy to clipboard operation
codeigniter-vitejs copied to clipboard

Bug Decorator

Open adnduweb opened this issue 3 years ago • 1 comments

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; }

adnduweb avatar Sep 11 '22 21:09 adnduweb

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

jaguarch avatar Nov 18 '22 01:11 jaguarch