zanthar123
New Member
I'm trying to merge all my plugins so I can change from this:\[code\]<html> <head> </head> <body> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://stackoverflow.com/questions/15727456/js/plugin1.js"></script> <script src="http://stackoverflow.com/questions/15727456/js/plugin2.js"></script> <script src="http://stackoverflow.com/questions/15727456/js/plugin3.js"></script> <script src="http://stackoverflow.com/questions/15727456/js/plugin4.js"></script> </body></html>\[/code\]to this:\[code\]<html> <head> </head> <body> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://stackoverflow.com/questions/15727456/js/plugins.min.js"></script> </body></html>\[/code\]The main idea is to have a tool to "auto import" into my plugins.js file all the plugins I need for my websites and also minify them when compiling. I've been testing with Google Closure (downloadable Java version of the compiler) and I figured how to minify files but I can't import external files. So I'd like to ask you if you could maybe tell me if Google Closure is the tool I'm looking for or if I should use another tool or method.With "auto import" I mean something likeLUGINS/HELLO.JS\[code\]function hello(name) { alert('Hello, ' + name);}\[/code\]PLUGINS.JS\[code\]@import hello.jshello('New user');\[/code\]I hope I made myself clear, I apologize if I messed up with my English.Thanks!!