i did notice a good performance improvement min'ing JS JSON and CSS files but some became unreadable after.
IDEA: script something that will minify say the JS (the JSON I have to test) and CSS files ... say with the JS ... have a MIN version that the pages use but work on the full version ... say have "foobar.js" but link to/use "foobar.min.js" so I can keep the "readable" versions AND get the performance improvement.
Though: off the top of my head I am not sure how to do this in bash (minifying) but maybe a .sh file that takes the .js files and copies them to the same folder and ads a ".min.js" extension ... THEN actually does the minifying.
JS to be in (I always have them in "/scripts/" folders) /scripts/src for the ones i edit but I will use the (I think this is the right one) VSCode plugin https://marketplace.visualstudio.com/items?itemName=josee9988.minifyall to minify them and then move the "foobar-min.js" (how the plugin names it) to the "root" /scripts folder
PHP - for now leave the php/html alone ..
JSON - I am not sure if prettier can undo the minification in vscode but i MAY want to do something similar to JS here ... only my IDEA is to copy and paste the JSON i edit from say a "JSON/src" folder to the root "JSON" folder... and minifying there ... i dont want "foobar-min.json" ... i rather leave that as "foobar.json"
i did notice a good performance improvement min'ing JS JSON and CSS files but some became unreadable after.
IDEA: script something that will minify say the JS (the JSON I have to test) and CSS files ... say with the JS ... have a MIN version that the pages use but work on the full version ... say have "foobar.js" but link to/use "foobar.min.js" so I can keep the "readable" versions AND get the performance improvement.
Though: off the top of my head I am not sure how to do this in bash (minifying) but maybe a .sh file that takes the .js files and copies them to the same folder and ads a ".min.js" extension ... THEN actually does the minifying.