Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/royalbhati/cssplit

CSS splitter that takes your big css file and splits into component specific css files
https://github.com/royalbhati/cssplit

css css-tool css3 go golang

Last synced: about 2 months ago
JSON representation

CSS splitter that takes your big css file and splits into component specific css files

Awesome Lists containing this project

README

        

CSSPLIT


A CSS splitter that takes in your main.css file and splits into component specific css files





Usage   


[![forthebadge](https://forthebadge.com/images/badges/made-with-go.svg)](https://golang.org)


[![License](https://img.shields.io/badge/License-MIT-pink.svg?style=for-the-badge)](LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-purple.svg?style=for-the-badge)](http://makeapullrequest.com)

# Usage

The script also allows following values from the commandline.

```console

usage: cssplit -dir -css -ext -exclude

arguments:

-dir Project Directory
-css Path to CSS file
-ext File extensions to parse example=.html,.jsx"
-exclude Files to exclude

```

example

```bash
cssplit -dir ~/project -css ~/project/main.css -ext ".html,.jsx" -exclude "utils,lib"

```

# Use It

**Want to use it ?**

Download the binary from the release page
[CSSplit](https://github.com/royalbhati/CSSplit/releases/tag/v1.0)

or clone the repo and compile it using

```console
$ cd project
$ go build
```