How to use the sort-css-media-queries.desktopFirst function in sort-css-media-queries

To help you get started, we’ve selected a few sort-css-media-queries examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github leptojs / lepto / src / gui / build / postcss.config.js View on Github external
require('postcss-simple-vars'),
    require('postcss-calc')({
      preserve: false
    }),
    require('postcss-size'),
    require('postcss-axis'),
    require('postcss-position'),
    require('autoprefixer')({
      browsers: '>0.1%'
    }),
    require('postcss-pxtorem')({
      replace: false
    }),
    require('postcss-color-function'),
    require('css-mqpacker')({
      sort: require('sort-css-media-queries').desktopFirst
    })
  ]
};

sort-css-media-queries

The custom `sort` method (mobile-first / desktop-first) of CSS media queries for `postcss-sort-media-queries`, `css-mqpacker` or `pleeease` (which uses css-mqpacker) or, perhaps, something else ))

MIT
Latest version published 3 months ago

Package Health Score

67 / 100
Full package analysis

Popular sort-css-media-queries functions