Web前端开发网

fly63.com

首页 资源 工具 文章 教程 栏目
  • 在线搜索
  • 文章标签
  • 广告合作
  • 赞助一下
  • 关于我们
资源推荐
通义灵码
基于通义大模型的智能编程辅助工具
衡天云
海外云服务器12元/月起,限量抢购,超高性价比
奇绘馆AI视频
新一代AI视频创作平台
AI应用助手
一站式AI工具平台,为工作和学习提供智能解决方案
OpenClaw(Clawdbot)部署
稳定不贵,不用写代码,分钟级部署OpenClaw
AiPPT
全智能AI一键生成 PPT
沁言学术
AI智能学术研究平台,覆盖科研全流程服务
方舟(Coding Plan)
火山引擎推出的大模型API聚合订阅服务
简约导航
一款清新简洁,免费无广告的导航网站
01Agent
AI内容创作智能体,选题+创作+排版+多平台分发

资源分类

AI智能 酷站推荐 招聘/兼职 框架/库 模块/管理 移动端UI框架 Web-UI框架 Js插件 Jquery插件 CSS相关 IDE环境 在线工具 图形动效 游戏框架 node相关 调试/测试 在线学习 社区/论坛 博客/团队 前端素材 图标/图库 建站资源 设计/灵感 IT资讯
网站收录 / 问题反馈

CleanCss

分享
复制链接
新浪微博
QQ 好友

扫一扫分享

网站地址:https://jakubpawlowicz.github.io/clean-css/
GitHub:https://github.com/jakubpawlowicz/clean-css
描述信息:基于Node.js的CSS代码压缩工具
访问官网
GitHub

Clean-CSS 是一个非常简单的 CSS 压缩程序,基于Node.js环境开发使用,可以删除 CSS 中一些无用的空格、评论以及每个选择器后面的分号,还可以压缩通过@import引入的CSS文件。


环境依赖

Node.js 4.0+ (tested on CentOS, Ubuntu, OS X, and Windows)


通过Npm安装

npm install clean-css


如何使用命令行

Clean-CSS接受下列命令行参数,使用时请将需要优化的CSS文件<source-file>放置到最后一个参数后面,避免遇到潜在的不可预想的问题。

cleancss [options] source-file, [source-file, ...]

-h, --help                     output usage information
-v, --version                  output the version number
-b, --keep-line-breaks         Keep line breaks
-c, --compatibility [ie7|ie8]  Force compatibility mode (see Readme for advanced examples)
-d, --debug                    Shows debug information (minification time & compression efficiency)
-o, --output [output-file]     Use [output-file] as output instead of STDOUT
-r, --root [root-path]         Set a root path to which resolve absolute @import rules
-s, --skip-import              Disable @import processing
-t, --timeout [seconds]        Per connection timeout when fetching remote @imports (defaults to 5 seconds)
--rounding-precision [n]       Rounds to `N` decimal places. Defaults to 2. -1 disables rounding
--s0                           Remove all special comments, i.e. /*! comment */
--s1                           Remove all special comments but the first one
--semantic-merging             Enables unsafe mode by assuming BEM-like semantic stylesheets (warning, this may break your styling!)
--skip-advanced                Disable advanced optimizations - ruleset reordering & merging
--skip-aggressive-merging      Disable properties merging based on their order
--skip-import-from [rules]     Disable @import processing for specified rules
--skip-media-merging           Disable @media merging
--skip-rebase                  Disable URLs rebasing
--skip-restructuring           Disable restructuring optimizations
--skip-shorthand-compacting    Disable shorthand compacting
--source-map                   Enables building input's source map
--source-map-inline-sources    Enables inlining sources inside source maps


仅供个人学习参考/导航指引使用,具体请以第三方网站说明为准,本站不提供任何专业建议。如果地址失效或描述有误,请联系站长反馈~感谢您的理解与支持!

链接: https://fly63.com/nav/1367

更多»
热门资源
less
一个CSS预处理器,意味着它扩展了CSS语言,增加了允许变量,混合,函数和许多其他技术的功能
官网
GitHub
sass
成熟、稳定和强大的CSS扩展语言
官网
GitHub
postcss
PostCSS是一个使用JavaScript插件来转换CSS的工具。
官网
GitHub
stylus
Stylus是一个高效、动态以及丰富的CSS预处理器
官网
GitHub
animate.css
齐全的CSS3动画库
官网
GitHub
Metro UI
基于平板界面设计CSS库是一种界面展示技术
官网
GitHub
Spectre.css
轻量响应式 CSS 框架
官网
GitHub
water.css
只需添加CSS框架即可应用样式,无需定义元素类
官网
GitHub
DropCSS
一个用来清理无用 CSS 的小工具
点击进入
GitHub
Pattern.css
一个CSS库,使用美丽的图案填充空的背景。
官网
GitHub
three-dots
一组CSS加载动画,它由三个点组成,而这些点仅由单个元素组成
官网
GitHub
CSSeffectsSnippets
提供了漂亮的CSS动画
官网
GitHub
类似于CleanCss的资源
CSSeffectsSnippets
提供了漂亮的CSS动画
官网
GitHub
cssnano
是PostCSS的CSS优化和分解插件
官网
GitHub
CssDig
一款支持Chrome浏览器扩展的CSS查看工具
官网
CssDeck
在线CSS代码编辑器及共享网
官网
css-animation-101
从零开始介绍 CSS 动画开源电子书
官网
GitHub
FOX CSS
一个轻量级的、模块化的CSS框架
官网
Picnic CSS
一个用Sass写的轻量级UI框架
官网
GitHub
CSS Tricks
常用的CSS样式与技巧
官网
GitHub
目录

手机扫一扫预览

》
分享组件加载中...
首页 技术导航 在线工具 技术文章 教程资源 前端标签 AI工具集 前端库/框架 实用工具箱 广告合作 关于我们

Copyright © 2018 Web前端开发网 All Rights Reserved. 提供免费在线工具、编程学习资源(教程/框架/库),内容以学习参考为主,助您解决各类实际问题,快速提升专业能力。