Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.
/ stylecat Public archive

Concatenate @import CSS references into a single stylesheet.

License

Notifications You must be signed in to change notification settings

ef2k/stylecat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Concatenate @import CSS references into a single stylesheet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published