辛宝Otto

Be a Happy Man

最近在学 Nuxt.js

06-速通 Syntax 635 lightningcss

音频听不了?可通过下面方式收听:

IPFS - https://ipfs.4everland.xyz/ipfs/bafybeifoxnyjggffclzjnmbxfbhsuounv3sfcpxrqong6xo2gwp4sgd62u

本期音频时长 14 分钟,较短,可安全收听。

介绍

本期我们带读 《syntax.fm 635 - lightning css

Lightning CSS 是一个 Rust 编写的 CSS 工具,类似 JS 领域的 EsBuild

their tagline is an extremely fast CSS parser, transformer, bundler, and minifier. 他们的标语是一个非常快速的CSS解析器、转换器、构建工具和压缩器。

作者是 the creator of parcel,因此对开发者体验还是比较满意的,也让人信任。

比如

  • css颜色,不同色域,更多颜色的支持
  • 嵌套语法
  • 更新的浏览器兼容列表,前缀
  • css color function
  • css module
  • css layer
  • text decoration

主播提到 should we be using lightning CSS in Vite to make it even faster?

结果 Vite v4.4 就说 Experimental support for Lightning CSS 开始提供支持了。

早在去年的 ViteConf 上猫头老哥就提到未来可能会使用 LightniingCSS 替换 PostCss,这里我有个图。

image

相关链接