func CSS(filep, csspath string, wg *sync.WaitGroup) {
	content, err := ioutil.ReadFile(csspath)
	if err != nil {
		log.Fatal(err)
	}
	requiredCSS, err := RequiredCSS(filep)
	if err != nil {
		log.Fatal(err)
	}
	text := string(content)
	scss := strings.ReplaceAll(text, "\n", "")
	a := scanner.New(scss)
	nextToken := a.Next()
	reqs := []string{}
	mapV := make(map[string]bool)
	temp := []string{}
	for nextToken.Type.String() != "EOF" {
		isElem, isValid, tv := validSelector(nextToken, requiredCSS, mapV)
		if isValid {
			temp = append(temp, tv)
			mapV[nextToken.Value] = true
			nextT := a.Next()
			for nextT.Value != "{" {
				bew := a.LookAhead()
				temp = append(temp, nextT.Value)
				mapV[nextT.Value] = true
				if bew == "{" && checkFor(mapV, requiredCSS, isElem, temp) {
					temp = nil
				}
				nextT = a.Next()
			}
			if len(temp) > 0 && validCSS(mapV, requiredCSS) {
				for nextT.Value != "}" {
					temp = append(temp, nextT.Value)
					mapV[nextT.Value] = true
					nextT = a.Next()
				}
				temp = append(temp, nextT.Value)
				reqs = append(reqs, temp...)
				mapV = make(map[string]bool)
				temp = nil
			}
		}
		nextToken = a.Next()
	}
	cssData := strings.Join(reqs, "")
	if err := saveFile(filep, cssData, wg); err != nil {
		log.Fatal(err)
	}
}
CSS extracts the css for that particular file and save that in that location where the original file is located
package extract
import (
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"sync"
	"github.com/royalbhati/cssplit/scanner"
)