javascript - 如何使用自定义配置缩小 CSS 和 JS?

标签 javascript css obfuscation minimization

我需要一个可靠的 JS 和 CSS 最小化器,它可以自定义并与现代 CSS3 属性兼容。我更喜欢它有类似属性文件的东西来配置。 你能帮我解决这个问题吗?

最佳答案

正如@Calgary Coder 在 thread 中提到的那样:

There are a wide variety of options. In terms of actual tools, the most common are:

1) Google Closure Compiler Service

2) Microsoft AJAX Minifier

3) YuiCompressor or YuiCompressor.NET

and likely many more, but I have used each of these tools, and all are great to work with.

If you are working with a .NET application library, there are also various other options that extend these base tools, to combine like resources and reduce overall HTTP requests.

1) Combres

2) Xpedite

3) SquishIt

Again, also likely many more...

关于javascript - 如何使用自定义配置缩小 CSS 和 JS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10946082/

相关文章:

javascript - 存储将传递给 jQuery 插件的 JSON 数据的最佳实践

android - 混淆 Activity 名称的解决方法

android - 生成用于代码分发的混淆 JAR

javascript - 使用 Jest 对依赖于 http 调用的代码进行单元测试的最佳方法?

javascript - 如何将 ng-include 回调添加到 Angular js 中的多个 ng-include 指令

css - SVG 作为 <img/> 与内联

html - 按钮的绝对定位实现响应式

java - 适用于任何 Java 项目的代码混淆器

javascript - 为多个元素创建同步动画

javascript - jcarousel 也可以与数据库一起使用吗?