@mozaic-ds/postcss-media-queries-packer-on-demand
Advanced tools
Comparing version 1.0.1-beta.2 to 1.0.1-beta.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.0.1-beta.3](https://github.com/adeo/mozaic-design-system/compare/v1.0.1-beta.2...v1.0.1-beta.3) (2020-02-06) | ||
### Bug Fixes | ||
* **tools/mqpacker:** impact only media queries instead of all at rules ([fa0d443](https://github.com/adeo/mozaic-design-system/commit/fa0d44357013eae49b14278ee6f7d6a66a168ad5)) | ||
## [1.0.1-beta.2](https://github.com/adeo/mozaic-design-system/compare/v1.0.1-beta.1...v1.0.1-beta.2) (2020-01-23) | ||
@@ -8,0 +19,0 @@ |
@@ -175,3 +175,7 @@ const postcss = require('postcss') | ||
if (node.type === 'atrule' && startPacking === true) { | ||
if ( | ||
node.type === 'atrule' && | ||
node.name === 'media' && | ||
startPacking === true | ||
) { | ||
addToAtRules(node) | ||
@@ -178,0 +182,0 @@ } |
@@ -1,2 +0,1 @@ | ||
import 'babel-polyfill' | ||
let postcss = require('postcss') | ||
@@ -208,1 +207,23 @@ | ||
}) | ||
it('should not impact other at rules than media', async () => { | ||
await run( | ||
`/* mqp:start */ | ||
.tata { | ||
color: blue; | ||
@supports (tututata) {} | ||
} | ||
@media (min-width: 680px) {} | ||
@media (min-width: 320px) {} | ||
@media (min-width: 1024px) {} | ||
/* mqp:end */`, | ||
`.tata { | ||
color: blue; | ||
@supports (tututata) {} | ||
} | ||
@media (min-width: 320px) {} | ||
@media (min-width: 680px) {} | ||
@media (min-width: 1024px) {}`, | ||
{ sort: true } | ||
) | ||
}) |
{ | ||
"name": "@mozaic-ds/postcss-media-queries-packer-on-demand", | ||
"version": "1.0.1-beta.2", | ||
"version": "1.0.1-beta.3", | ||
"description": "PostCSS plugin that group media queries on demand", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
111927
17
1895
1