推荐使用 lightningcss
替代 postcss
,提升整体效能
postcss
涵盖了主流的 Postcss 插件的支持 如:
postcss.px_to_rem
PX-to-REMpostcss.px_to_viewport
PX-to-VWpostcss.apply
postcss-applypostcss.static_vars
postcss-prefix-selectorpostcss.url
postcss-simple-varspostcss.specific_environment_variables
postcss-env-functionpostcss.env_function
postcss-env-functionpostcss.design_tokens
postcss-design-tokenpostcss.custom_units
custom-unitspostcss.property_lookup
postcss-property-lookuppostcss.focus_visible
postcss-focus-visiblepostcss.dark_theme_class
postcss-dark-theme-classpostcss.fix_100vh
postcss-100vh-fixpostcss.logical_transforms
rtlcsspostcss.hover_media_query
mq4-hover-shimpostcss.momentum_scrolling
postcss-momentum-scrollingpostcss.size
postcss-sizeautoprefixer
通过 build.browserslist
可以自定义 browserslist
store.browserslistOptions.default
或者 store.browserslistOptions.h5
设置 mobile web 支持