Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daliborgogic/merge-media-queries-stylus

Merge Media Queries Stylus Plugin
https://github.com/daliborgogic/merge-media-queries-stylus

Last synced: 9 days ago
JSON representation

Merge Media Queries Stylus Plugin

Awesome Lists containing this project

README

        

CSS MQPacker Stylus
-------------------

An [node-css-mqpacker](https://github.com/hail2u/node-css-mqpacker) plugin for stylus.

### Installation

You can install through npm as such: `npm i daliborgogic/merge-media-queries-stylus`

### Usage

You can include merge-media-queries-stylus as a normal stylus plugin. Basic example below:

```js
var stylus = require('stylus');
var mergeMediaQueries = require('merge-media-queries-stylus');

stylus(css)
.use(mergeMediaQueries())
.render(function(err, output) {
console.log(output);
});
```

If you'd like to install globally and run from the command line, you can do it like this:

```js
npm i -g daliborgogic/merge-media-queries-stylus
stylus -u merge-media-queries-stylus -c foo.styl
```