postcss-custom-properties
Advanced tools
Comparing version 12.0.4 to 12.1.0
# Changes to PostCSS Custom Properties | ||
### 12.1.0 (January 12, 2022) | ||
- Add `overrideImportFromWithRoot` option | ||
- Allow `.mjs` in `importFrom` | ||
- Converted to typescript | ||
- Correct typings for plugin options | ||
- Fix unicode support in custom property names | ||
### 12.0.4 (January 7, 2022) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "postcss-custom-properties", | ||
"version": "12.0.4", | ||
"version": "12.1.0", | ||
"description": "Use Custom Properties Queries in CSS", | ||
@@ -14,3 +14,10 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"module": "dist/index.mjs", | ||
"types": "index.d.ts", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
@@ -17,0 +24,0 @@ "CHANGELOG.md", |
@@ -140,2 +140,13 @@ # PostCSS Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss] | ||
### overrideImportFromWithRoot | ||
The `overrideImportFromWithRoot` option determines if properties added via `importFrom` are overridden by properties that exist in `:root`. | ||
Defaults to `false`. | ||
```js | ||
postcssCustomProperties({ | ||
overrideImportFromWithRoot: true | ||
}); | ||
``` | ||
### exportTo | ||
@@ -142,0 +153,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
33691
14
101
202