PostCSS 是一个允许使用 JS 插件转换样式的工具。 这些插件可以检查(lint)你的 CSS,支持 CSS Variables 和 Mixins, 编译尚未被浏览器广泛支持的先进的 CSS 语法,内联图片,以及其它很多优秀的功能。
PostCSS 在工业界被广泛地应用,其中不乏很多有名的行业领导者,如:维基百科、Twitter、阿里巴巴、JetBrains。PostCSS 的 Autoprefixer 插件是最流行的 CSS 处理工具之一。
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
finallymethod toLazyResultto 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.
完整更新内容和源码下载地址请查看发行列表。
继续阅读与本文标签相同的文章
-
微信小程序兼容性问题。
2026-05-18栏目: 教程
-
flex的兼容性处理问题
2026-05-18栏目: 教程
-
Mac高效开发之iTerm2、Prezto和Solarized主题
2026-05-18栏目: 教程
-
将阿里云产品整合成为高校课程实训的训练营产品的实践(四)
2026-05-18栏目: 教程
-
中间人攻击,HTTPS也可以被碾压
2026-05-18栏目: 教程
