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

https://github.com/jumpingrivers/minifycss

CSS minifier with structural optimizations using CSSO
https://github.com/jumpingrivers/minifycss

Last synced: 8 months ago
JSON representation

CSS minifier with structural optimizations using CSSO

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

# The minifyCSS package

A binding to the [csso](https://github.com/css/csso) JavaScript library.

## Installation

The package can be installed via
```{r eval=FALSE}
devtools::install_github("jumpingrivers/minifyCSS")
```

## Usage

```{r}
library("minifyCSS")
```
The main function takes a CSS string input
```{r}
input = "* { color: green; }
ul, ol, li { color: blue; }
UL.foo, span.bar { color: red; }"
```
and returns a minified version
```{r}
minifyCSS(input)
```