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
- Host: GitHub
- URL: https://github.com/jumpingrivers/minifycss
- Owner: jumpingrivers
- Created: 2017-02-09T20:56:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T21:23:57.000Z (over 9 years ago)
- Last Synced: 2025-01-15T23:25:26.897Z (over 1 year ago)
- Language: JavaScript
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
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)
```