postcss-custom-media
Advanced tools
Comparing version 7.0.3 to 7.0.4
# Changes to PostCSS Custom Media | ||
### 7.0.4 (September 23, 2018) | ||
- Added: `importFromPlugins` option to process imports | ||
### 7.0.3 (September 20, 2018) | ||
@@ -4,0 +8,0 @@ |
@@ -210,3 +210,3 @@ 'use strict'; | ||
afterModifier, | ||
originalModifier: modifier || 'not', | ||
originalModifier: modifier || '', | ||
beforeAnd, | ||
@@ -361,3 +361,12 @@ and, | ||
type: media.type || replacementMedia.type | ||
}); | ||
}); // conditionally include more replacement raws when the type is present | ||
if (mediaClone.type === replacementMedia.type) { | ||
Object.assign(mediaClone.raws, { | ||
and: replacementMedia.raws.and, | ||
beforeAnd: replacementMedia.raws.beforeAnd, | ||
beforeExpression: replacementMedia.raws.beforeExpression | ||
}); | ||
} | ||
mediaClone.nodes.splice(index, 1, ...replacementMedia.clone().nodes.map(node => { | ||
@@ -687,3 +696,3 @@ // use spacing from the current usage | ||
const type = (opts.type || path.extname(opts.to).slice(1)).toLowerCase(); // transformed custom media | ||
const type = (opts.type || path.extname(to).slice(1)).toLowerCase(); // transformed custom media | ||
@@ -690,0 +699,0 @@ const customMediaJSON = toJSON(customMedia); |
{ | ||
"name": "postcss-custom-media", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "Use Custom Media Queries in CSS", | ||
@@ -41,3 +41,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"pre-commit": "^1.2.2", | ||
"rollup": "^0.66.1", | ||
"rollup": "^0.66.2", | ||
"rollup-plugin-babel": "^4.0.3" | ||
@@ -44,0 +44,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55969
1272