一种有效的方式来合并2个大型CSS文件 [英] An efficient way to merge 2 large CSS files

查看:129
本文介绍了一种有效的方式来合并2个大型CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个工具,允许您合并2个大型CSS文件。所有我试过迄今(像CSSMerge)还没有解决。其中一些只是随机删除属性。其他人对非标准属性,如-webkit和-moz,并给我错误。我还需要一些保留每个规则的情况。

I'm looking for a tool that allows you to merge 2 large CSS files. All the ones I've tried so far (like CSSMerge) haven't worked out. Some of them just randomly remove properties. Others choke on the non-standard properties like -webkit and -moz and give me errors. And I also need something that preserves the case of each rule. CSSMerge changed all rules to lower-case.

推荐答案

尝试



CSS Compressor&缩写



它有很多选项,你可以压缩和/或缩小css。

Try

CSS Compressor & Minifier

It have lots of options, you can compress and/or minify css.


  • 将两个CSS文件复制到CSS输入

  • 打开排序选择器和属性

  • 获取输出

  • 手动移除重复项

  • 重新输入输入

  • 压缩或缩小输出

  • Copy both CSS files into CSS input
  • Turn on Sort selectors and properties
  • Obtain output
  • Manually remove duplicates
  • Re-enter input
  • compress or minify your output

这篇关于一种有效的方式来合并2个大型CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆