"plugins": [ "stylelint-order" ], "rules": { "order/order": [ "custom-properties stylelint-order', 'stylelint-scss' ], rules: { "order/order": [ "custom-properties
postcss-preset-env')({ stage: 3, autoprefixer: { grid: 'autoplace' }, features: { 'custom-properties ': false } }) ] } 根据 .browserslistrc 自动补齐前缀,启用 grid: 'autoplace' 为 IE11 生成 -ms-grid 关闭 custom-properties
> <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/<em>custom-properties</em>" xmlns:vt
> <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/<em>custom-properties</em>" xmlns:
green); background: var(--primary); // 我们期望转换为 background: #08cb6a;} 解决方法:禁用 postcss-preset-env 中的custom-properties ,安装6.x版本的custom-properties,单独添加该插件。
never", "rule-empty-line-before": "never", "order/order": [ "custom-properties
✅响应式与可访问性使用--custom-properties统一主题色,便于定制;所有按钮含aria-label语义(可扩展);支持键盘导航(Enter保存编辑,Escape取消)。五、如何扩展?
'postcss-preset-env': { autoprefixer: {}, stage: 3, features: { 'custom-properties