sort-css-media-queries
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

sort-css-media-queries

npm es2015 license Build Status

The custom sort method for css-mqpacker or pleeease (which uses css-mqpacker) or, perhaps, something else ))

js happiness style

Installing

npm install --save sort-css-media-queries
# or using yarn cli
yarn add sort-css-media-queries

Usage

See the original docs at first https://www.npmjs.com/package/css-mqpacker#sort;

const sortCSSmq = require('sort-css-media-queries');

// your cool code
// ...

postcss([
  mqpacker({
    sort: sortCSSmq
  })
]).process(css);

Warn

it's use es6 syntax

Tests

  1. npm test for testing js code style and test sorting method
  2. npm run fix for automatically fix most of problems with js code style

Changelog

Please read CHANGELOG.md

Contributing

you know what to do - issues and pulls

Package Sidebar

Install

npm i sort-css-media-queries@1.1.9

Version

1.1.9

License

MIT

Last publish

Collaborators

  • dutchenkooleg