0

I am using grunt to build my JS project. I see that the uglify plugin for grunt is capable of merging multiple JS files into a single file and uglify them. Given this feature, I am wondering if there is a need to use concat plugin at all. Can I directly use uglify. Is there something that i am missing.

Most tutorials seem to suggest that I must first use concat then uglify.

Aneesh
  • 579
  • 2
  • 5
  • 21

1 Answers1

1

You don't need a separate concat tool. See the docs (under "Usage examples - Basic compression"). You just specify the files you want uglified, and it will concatenate them for you.

greenie2600
  • 1,679
  • 3
  • 17
  • 24