PostCSS 7.0 全新版本发布,用 JS 插件转换样式

栏目: 软件资讯 · 发布时间: 8年前

内容简介:PostCSS 是一个允许使用 JS 插件转换样式的工具。 这些插件可以检查(lint)你的 CSS,支持 CSS Variables 和 Mixins, 编译尚未被浏览器广泛支持的先进的 CSS 语法,内联图片,以及其它很多优秀的功能。 PostCS...

PostCSS 是一个允许使用 JS 插件转换样式的工具。 这些插件可以检查(lint)你的 CSS,支持 CSS Variables 和 Mixins, 编译尚未被浏览器广泛支持的先进的 CSS 语法,内联图片,以及其它很多优秀的功能。

PostCSS 在工业界被广泛地应用,其中不乏很多有名的行业领导者,如:维基百科、Twitter、阿里巴巴、JetBrains。PostCSS 的 Autoprefixer 插件是最流行的 CSS 处理 工具 之一。

PostCSS 7.0 全新版本发布,用 JS 插件转换样式

PostCSS 7.0 移除了对 Node.js 4 和 Node.js 9 的支持,并从 Babel 的 Browserslist 中移除了 IE 和不再有安全更新(“dead”)的浏览器。

last 2 version
not dead
not Explorer 11
not ExplorerMobile 11
node 10
node 8
node 6

新特性

  • added cute thing for plugin developers. If an error was happened in Container#walk()circle, PostCSS will show in stack trace CSS node, which causes this error: 

TypeError: Cannot read property '0' of undefined
    at /home/ai/Dev/test/app.css:10:4
    at plugin (plugin.js:2:4)
    at runPostCSS (runner.js:2:1)

  • added finally method to LazyResult to make it compatible with the latest Promise API.

其他更改

  • Client-side size was reduced by Size Limit feedback.

  • Add warning on calling PostCSS without plugins and syntax options.

完整更新内容和源码下载地址请查看发行列表。


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Web 2.0 Architectures

Web 2.0 Architectures

Duane Nickull、Dion Hinchcliffe、James Governor / O'Reilly / 2009 / USD 34.99

The "Web 2.0" phenomena has become more pervasive than ever before. It is impacting the very fabric of our society and presents opportunities for those with knowledge. The individuals who understand t......一起来看看 《Web 2.0 Architectures》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具