3

Can somebody tell me how can i use make files to combine and merge different javascript files. I have seen many different projects using different javascript files and later on merge by using MAKE utility.

Deep.

Deep
  • 31
  • 1
  • 2
  • 2
    I use ant for this purpose, if you're interested I can share my script. – stivlo Jan 24 '11 at 11:38
  • 2
    You can take a look at [jQuery's Makefile](https://github.com/jquery/jquery/blob/master/Makefile). – Thai Jan 24 '11 at 11:51
  • Merge as in appending one to another, or something more sophisticated? Do you know how to merge these files manually, from the command line? – Beta Jan 24 '11 at 13:13
  • There’s a pretty nice tutorial here: https://blog.jcoglan.com/2014/02/05/building-javascript-projects-with-make/ – Paul D. Waite Jan 19 '16 at 16:39

1 Answers1

1

This question may hold the answer for you, I tried to do the exact same thing once.

If not you can find my finished one here.

It is fairly similar to jQuery's.

Community
  • 1
  • 1
Olical
  • 36,487
  • 11
  • 54
  • 76