Skip to content
Concatenate @import CSS references into a single stylesheet.
Go CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures
.travis.yml
LICENSE
README.md
dev.yaml
stylecat.go
stylecat_test.go

README.md

stylecat Go Report Card Build Status

Concatenate @import CSS references into a single stylesheet.

Usage

import (
  "github.com/ef2k/stylecat"
)

func main() {
    src, err := stylecat.Run("/the/path/to/public/css/master.css", nil)
}

When stylesheets link to absolute paths e.g: /css/master.css, set a RootPath:

src, err := stylecat.Run("/the/path/to/public/css/master.css", &stylecat.Config{
  RootPath: "/the/path/to/public"
})

Documentation

GoDoc

Contributions

Fixes? Ideas? Improvements? Jump in. All are welcome!

License

MIT.

You can’t perform that action at this time.