Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maximkoretskiy/postcss-alias-atrules

PostCSS plugin that creates aliases for at-rules.
https://github.com/maximkoretskiy/postcss-alias-atrules

Last synced: about 1 month ago
JSON representation

PostCSS plugin that creates aliases for at-rules.

Awesome Lists containing this project

README

        

# PostCSS Alias Atrules
[![Build Status][ci-img]][ci] [![NPM][npm-img]][npm] [![David DM][david-img]][david]

[PostCSS] plugin that creates aliases for at-rules.

[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/maximkoretskiy/postcss-alias-atrules.svg
[ci]: https://travis-ci.org/maximkoretskiy/postcss-alias-atrules
[npm-img]: https://badge.fury.io/js/postcss-alias-atrules.svg
[npm]: https://www.npmjs.com/package/postcss-alias-atrules
[david-img]: https://david-dm.org/maximkoretskiy/postcss-alias-atrules.svg
[david]: https://david-dm.org/maximkoretskiy/postcss-alias-atrules

```css
@i "path/to/import.css";
```

```css
@import "path/to/import.css";
```

## Usage

```js
postcss([ require('postcss-alias-atrules'){
rules: {
i: 'import'
}
} ])
```

See [PostCSS] docs for examples for your environment.