JavaScript 代码压缩是指去除源代码里的所有不必要的字符,而不改变其功能的过程。这些不必要的字符通常包括空格字符,换行字符,注释以及块分隔符等用来增加可读性的代码,但并不需要它来执行。

在这篇文章中,我们选择了15个最好用的 JavaScript 压缩工具,有简单的在线转换器,GUI工具和命令行界面等。

1. JavaScript Minifier

It is a nice looking tool with an API to minify your js code.

2. JSMIni

If you want to minify your JavaScript or jQuery files quickly and easily, turn to jsMini. Just copy and paste your source code, select whether you want basic or full compression, and then minify your code.

3. JSCompress

JSCompress.com is an online javascript compressor that allows you to compress and minify your javascript files. Compressed javascript files are ideal for production environments since they typically reduce the size of the file by 30-90%. Most of the filesize reduction is achieved by removing comments and extra whitespace characters that are not needed by web browsers or visitors.

4. Minifier

A simple tool for minifying CSS/JS without a big setup. It reworks URLs in CSS from the original location to the output location. It automatically resolves @import statements in CSS.

5. Gulp.js

Gulp.js is the streaming build system. It's use of streams and code-over-configuration makes for a simpler and more intuitive build. By preferring code over configuration, gulp keeps simple things simple and makes complex tasks manageable. By harnassing the power of node's streams you get fast builds that don't write intermediary files to disk. Gulp's strict plugin guidelines assure plugins stay simple and work the way you expect.

6. Uglifyjs

This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit. It is developed on NodeJS, but it should work on any JavaScript platform supporting the CommonJS module system (and if your platform of choice doesn't support CommonJS, you can easily implement it, or discard the exports.* lines from UglifyJS sources).

7. Grunt

Grunt is a task-based command line build tool for JavaScript projects. It has the following predefined tasks that you can use in your project: Concatenate files, Validate files with JSHint, Minify files with UglifyJS, Run unit tests with node unit and etc.

8. Koala

Koala is a GUI application for Less, Sass, Compass and CoffeeScript compilation, to help web developers to use them more efficiently. Koala can run in windows, linux and mac.

9. Prepros

Prepros is a tool to compile LESS, Sass, Compass, Stylus, Jade and much more with automatic CSS prefixing, It comes with built in server for cross browser testing. It runs on windows, mac and linux.

10. Ajax Minifier

This tool is a Windows application that allows you to run the Microsoft Ajax Minifier without using the command line or Visual Studio. It minifies all javascript files in a folder and nested folders, minify individual javascript files, enable/disable the minifier's hypercrunch and analysis options and many more.

11. Smaller

Smaller is a powerful HTML, CSS and JavaScript compressor on OS X which also has the ability to combine several files into one. Compress your files and make your websites load faster.

12. Ultra Minifier

Ultra Minifier is the most simple YUI Compressor GUI to minify Javascript and CSS code without using the Terminal.

13. Require JS

RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code. It includes an optimization tool you can run as part of your packaging steps for deploying your code. The optimization tool can combine and minify your JavaScript files to allow for better performance.

14. Online JavaScript/CSS Compressor

This is a web interface to compress your JavaScript or CSS. This tool uses UglifyJS 2, Clean-CSS and HTML Minifier.

15. Minify

Minify is a PHP5 app that helps you follow several of Yahoo!'s Rules for High Performance Web Sites. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对脚本之家的支持。如果你想了解更多相关内容请查看下面相关链接

linux css压缩工具下载,推荐15个最好用的JavaScript代码压缩工具相关推荐

  1. 15个最好用的JavaScript代码压缩工具

    2019独角兽企业重金招聘Python工程师标准>>> JavaScript 代码压缩是指去除源代码里的所有不必要的字符,而不改变其功能的过程.这些不必要的字符通常包括空格字符,换行 ...

  2. 推荐15款很棒的 JavaScript 开发工具

    在开发中,借助得力的工具可以事半功倍.今天这篇文章与大家分享最近发现的一些有用的 JavaScript 和 jQuery 的开发工具,库和插件.希望这些工具在你你即将到来的项目中能用得上. 01.Te ...

  3. javascript代码_15个最好用的JavaScript代码压缩工具

    JavaScript 代码压缩是指去除源代码里的所有不必要的字符,而不改变其功能的过程.这些不必要的字符通常包括空格字符,换行字符,注释以及块分隔符等用来增加可读性的代码,但并不需要它来执行. 在这篇 ...

  4. JavaScript代码压缩工具UglifyJS和Google Closure Compiler的基本用法

    网上搜索了,目前主流的Js代码压缩工具主要有Uglify.YUI Compressor.Google Closure Compiler,简单试用了UglifyJS 和Google Closure Co ...

  5. CSS和JavaScript在线代码压缩工具推荐

    网页前端的JavaScript代码编写好之后,不像C语言会编译成机器码,作为脚本语言,JavaScript是直接从源码文件执行的.通常为了节省空间,可以把代码进行压缩,去掉多余的空格和换行等(代码可以 ...

  6. 最新Linux教程发布下载【最后更新4月12日

    以下是Linux爱好者最新发布的Linux书籍,本贴定期更新,欢迎下载. 红帽(RedHat)授权Linux认证培训中心.只要你敢来,我就敢让你过! 二本Linux测试题目考察 http://www. ...

  7. Linux 下 离线下载服务部署 CCAA的安装使用

    Linux 下 离线下载服务部署 CCAA的安装使用 我的小站.Github CCAA 是服务器离线下载解决⽅案包,组件包含了Aria2 提供离线下载,ccaa_web⽀撑AriaNg运⾏, Aria ...

  8. Linux嵌入式开发必读推荐书籍

    Linux嵌入式开发必读推荐书籍 本帖最后由 JIM.BO 于 2011-1-11 15:44 编辑 linux必读.高手必经之路.ppt C/C++语言基础 1 <The C Programm ...

  9. Linux命令行下载大文件,下载Onedrive文件

    Linux命令行下载大文件,下载Onedrive文件 做深度学习实验时,经常会遇到下载数据集,下载到本地又上传到Linux服务器上,这时用rz上传会很慢,在网上找到一些方法,用curl下载One-dr ...

  10. 免费的css模板下载

    免费的css模板下载 收藏贴,有发现其他的会不断的更新,有时间去下载研究研究. http://www.freecsstemplates.org/ www.freewebtemplates.com 第一 ...

最新文章

  1. 学习在Unity中创建一个动作RPG游戏
  2. minhash算法检索相似文本_文本去重算法:Minhash/Simhash/Klongsent
  3. QT的QMediaPlayer类的使用
  4. 使用TorchElastic训练DeepSpeech
  5. vue之filter用法
  6. docker安装kafka,超级简单的
  7. db2设置数据库增量备份_DB2在线增量备份 还原增量备份及前滚恢复
  8. python中selenium中使用ajax_Selenium测试Ajax程序(转)
  9. 浅谈CDQ分治与偏序问题
  10. 小白 白嫖7天百度云网盘会员,高速下载
  11. Vue项目使用file-saver将html转word文件、把html内容下载保存导出到本地生成doc文件包括图片:前端下载利器FileSaver
  12. 电压力锅中的计算机控制系统,电压力锅的(电脑板)工作原理
  13. python爬取豆瓣电影排行榜函数_摆脱剧荒:教你用Python爬取豆瓣电影最新榜单
  14. 百练noi21:二维数组右上左下遍历,24:蛇形填充数组
  15. android 九宫格手势密码 纯代码实现
  16. H3C wifi 命令
  17. 来认识一下Ning!
  18. android+播放器+遥控,遥控大师安卓客户端
  19. Cobbler自动化部署
  20. Content type 'multipart/form-data;boundary=--------------------------496238283102520395700876;解决方案

热门文章

  1. 彻底关闭Windows DefenderWindows 更新
  2. 百度自然语言处理开放接口使用代码
  3. simnow账户无法使用,simnow账户修改密码
  4. LCOI出题组加团规则
  5. 一文解读Masked Autoencoder(MAE)
  6. 揭秘慕思“智商税”:狂砸40亿搞营销,发明专利仅7项
  7. 学做衣服论坛 -服装DIY教程,缤纷服装网,裁剪教程,家用缝纫机,买布料
  8. java 页眉页脚_Java 修改Word页眉页脚
  9. ISBN号码(c++)
  10. 一张图理解贝叶斯公式