I have a javascript file that has two global variables. The problem is that when I minify the file the variables are removed and I get errors in the console.
How can I minify the file and have it keep my global variables.
/** global variables **/
window.$url = 0;
window.$searchText = 0;