![]() |
best practice: Where to store JS-files? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: best practice: Where to store JS-files? (/showthread.php?tid=88940) |
best practice: Where to store JS-files? - JanFromHamburg - 12-05-2023 I am using several JS/JQuery files in my views. Optimizing data tables or some AJAX calls for example. Where do you recommend to store javascript files within the Codeigniter4 environment? RE: best practice: Where to store JS-files? - ozornick - 12-06-2023 If you are developing JS separately as a project (React, Ve, Vanilla), I would recommend using a separate folder at the ./frontend/ (./app/ level). And publish them after the build in ./public/ If these are small ready-made scripts, then ./public/{js,assets,css} is the right place RE: best practice: Where to store JS-files? - InsiteFX - 12-06-2023 root -- app -- system -- public -> or (public_html) ---- assets ------ css ------ js ------ img ------ images ------ plugins -- etc; |