Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to minfiy Javascript files in the Eclipse IDE?

I am developing a project using AngularJS and I am planning to minfiy the JS and CSS files in Eclipse IDE.

I am very new to Eclipse. Could you please suggest some process and links.

like image 356
Coder Avatar asked Apr 01 '26 16:04

Coder


1 Answers

I would integrate a minify step in your build process rather than (manually) minifying the Javascript code after each change. Which tool is best suited depends on how you build the software.

You may also want to consider to let your server minify Javascript code on the fly before delivering. That again depends on the server that delivers your resources - if that is under your control.

For ocassionally minifying Javascript code, there are several Eclipse plug-ins that claim to to the job:

  • YUICompressor Eclipse integration
  • JSMin Eclipse Plug-in
  • JSCompressor

... or you can resort to an online service like http://jscompress.com/.

like image 152
Rüdiger Herrmann Avatar answered Apr 03 '26 08:04

Rüdiger Herrmann