css-mqpacker-sort-mediaqueries

Sorts mediaqueries by min-width and/or max-width, ordered ascending (to be used as sort option value for postcss plugin css-mqpacker)

Usage no npm install needed!

<script type="module">
  import cssMqpackerSortMediaqueries from 'https://cdn.skypack.dev/css-mqpacker-sort-mediaqueries';
</script>

README

css-mqpacker-sort-mediaqueries

Sorts mediaqueries by min-width and/or max-width, ordered ascending (to be used as sort option value for postcss plugin css-mqpacker)

📖 See css-mqpacker documentation to read more about its usage and the sort option.

Example:

const cssMqpacker = require('css-mqpacker');
const sortMediaqueries = require('css-mqpacker-sort-mediaqueries');

cssMqpacker({
  sort: sortMediaqueries
});