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 插件
expand
和normalize
,交给 postcss 进行处理。 - 得到的结果交给
objectifier
转为客户端接受的对象类型
lib/css.json
文件来自 syntax 自动生成,无需修改。