Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helloandre/gss
CSS Compressor written in Go
https://github.com/helloandre/gss
Last synced: 26 days ago
JSON representation
CSS Compressor written in Go
- Host: GitHub
- URL: https://github.com/helloandre/gss
- Owner: helloandre
- License: mit
- Created: 2012-10-27T04:40:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-27T04:44:51.000Z (about 12 years ago)
- Last Synced: 2024-10-27T17:30:37.828Z (2 months ago)
- Language: Go
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
GSS
====GSS is a css compiler written in [Go](http://golang.org). It's not incredibly efficient time-wise, but in my testing has produced a smaller output file that YUICompressor.
Why?
---Because I wanted to play with Go and was interested in parsing CSS. GSS does two passes over the input file tokenizing then compressing. This makes it really inefficent, but it was fun to build.
Eventuall I would like to do something similar with Javascript in Go as well.
Usage
---You can either use the `run` script included or compile it once and run it with just that executable. The usage below can be used for either approach.
`./run -o `
Testing
---I've included Twitter's Bootstrap CSS as a benchmark. My testing shows GSS creates a smaller file that functions the same. To run this test:
`./run -o test/input/bootstrap.css test/output/bootstrap.css`
Please let me know or file an issue if you see something amiss.