1

I have 2 js file ( main.js, work.js) and want to combine these, but I need to keep their file name so I can call work.js from main.js like

w = new Worker("work.js");

Any idea of this?

J.Done
  • 2,783
  • 9
  • 31
  • 58

1 Answers1

0

minify github library can be used to combine multiple js or css files into one file when you stack them in a url like

          <script src="/scripts/js/work.js,/scripts/js/main.js"></script>
Wesam
  • 932
  • 3
  • 15
  • 27