JSPM

@dcloudio/uni-nvue-styler

3.0.0-alpha-4070220250618001
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4149
  • Score
    100M100P100Q154139F
  • License Apache-2.0

uni-nvue-styler

Package Exports

  • @dcloudio/uni-nvue-styler
  • @dcloudio/uni-nvue-styler/dist/uni-nvue-styler.cjs.js
  • @dcloudio/uni-nvue-styler/dist/uni-nvue-styler.es.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dcloudio/uni-nvue-styler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dcloudio/uni-nvue-styler

跨平台 css 解析。 css 字符串转对象,css 缩写展开,不支持特性告警、容错。

项目结构

src/index.ts 里导出的 parse 是完整流程,可供编译。

  • 自定义了两个 postcss 插件 expandnormalize,交给 postcss 进行处理。
  • 得到的结果交给 objectifier 转为客户端接受的对象类型

lib/css.json 文件来自 syntax 自动生成,无需修改。