javascript - Switching between minified code and normal code depending on environment? -
Currently using mysterious to reduce my JS files I have a PHP script in my HTML which Checks the URL and decides whether a large minor JavaScript file or all regular Javascript files are included, it is upset because I have all the files listed in two places; Once in the horror file and once in the switch statement in my PHP script. If one of the teams adds a new file, but not the second, there are bad things, an easy and effective way to go about switch between the two? We want our production server to use the mined code and our local dev environment uses unified code.
Comments
Post a Comment