Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days ago
JSON representation
CSS splitter that takes your big css file and splits into component specific css files
- Host: GitHub
- URL: https://github.com/royalbhati/cssplit
- Owner: royalbhati
- License: mit
- Created: 2020-08-22T05:26:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T14:53:14.000Z (about 4 years ago)
- Last Synced: 2024-10-14T01:44:39.746Z (about 1 month ago)
- Topics: css, css-tool, css3, go, golang
- Language: Go
- Homepage:
- Size: 343 KB
- Stars: 84
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CSSPLIT
A CSS splitter that takes in your main.css file and splits into component specific css files
[![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
```