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

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

内容简介: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]


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

查看所有标签

猜你喜欢:

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

Head First Rails

Head First Rails

David Griffiths / O'Reilly Media / 2008-12-30 / USD 49.99

Figure its about time that you hop on the Ruby on Rails bandwagon? You've heard that it'll increase your productivity exponentially, and allow you to created full fledged web applications with minimal......一起来看看 《Head First Rails》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

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

正则表达式在线测试