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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -