If you’re a seasoned pro, you should probably look into Grunt or Gulp as these offer the most control over automation tasks. They will help you manage your projects in general and offer much more than just JS minification. If you’re new to web development, I recommend one of the first three GUI tools. Getting used to the command line takes some (not a lot of) practice which you will find restrictive before you start enjoying the benefits. On the other hand, there is a bit of a learning curve. The upside of command line tools is the awesome amount of flexibility you have from options to output. Gulp also has JS minification using Uglify.js through gulp-uglifyĬommand line tools are not just for Linux geeks! I’m not great at the terminal but setting up things like Grunt and Gulp is easy through their great documentation.Grunt has an extension for Javascript minification named grunt-contrib-uglify.Uglify.js which we’ve mentioned before is also available as a stand-alone command line tool.Minify is for those who want to minify JS from the command line but don’t want to set up anything fancy in Grunt or Gulp.If you’re developing something in Javascript, this is the way to go. Your JS files will be minified each time you save them no need to manually minify them. On the other hand, they offer you more features in general and provide you with automation. A quick JS minification would take about 20 seconds of setup, which is a lot, compared to the 2-second process of online or simple GUI tools. Larger GUI tools (Prepros, Koala, Codekit) are great at managing projects and giving you a bit more options for compression, but they do need a little bit of setup. That said, they provide virtually no customization. They are extremely quick to use since you can just drag and drop files into them, no setup required. The simple one-step minification apps are much like their online counterparts. I’ve mentioned two types of GUI apps here. UltraMinifier is a free app for OS X which minifies CSS and JS with drag and drop.It is a paid Mac-only app that offers code compilation, minification, a preview server, bower package management, and a lot more Prepros is a cross-platform paid app which gives you even more options.Koala is a free tool for LESS, SASS compilation, JS minification and a lot more.The downside to these tools is that they mostly provide little to no customization, at least when compared to command line tools. Complex GUI and command line tools minify quicker, but you need to set up a project for it to work properly. The great thing about online tools is the speed with which you can work with them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |