Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rbelling/postcss-safe-curly-braces

PostCSS plugin to transform '}}' in '} }'
https://github.com/rbelling/postcss-safe-curly-braces

css handlebars postcss postcss-plugin vuejs

Last synced: about 2 hours ago
JSON representation

PostCSS plugin to transform '}}' in '} }'

Awesome Lists containing this project

README

        

# PostCSS Safe Curly Braces [![Build Status][ci-img]][ci]

[PostCSS] plugin that adds a white space between closing curly braces.

This is useful when inlining css into a Handlebars template.

[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/[email protected]/postcss-separate-curly-braces.svg
[ci]: https://travis-ci.org/[email protected]/postcss-separate-curly-braces

```css
@media(hover:hover){.foo{display:none}}
```

```css
@media(hover:hover){.foo{display:none} }
```

## Usage

```js
postcss([ require('postcss-safe-curly-braces') ])
```

See [PostCSS] docs for examples for your environment.