go-run-sass

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 7 Imported by: 0

README

github.com/zzwx/go-run-sass

go-run-sass

A simple command line tool wrapper to generate css using go-libsass, which otherwise recompiles the whole library when simply imported as github.com/wellington/go-libsass. The other workarounds are explained in go-libsass README.

Installation

$ go install github.com/zzwx/go-run-sass@latest

Help

$ go-run-sass
Usage of go-run-sass:
  -help
        Print this help
  -i string
        Input SASS file
  -o string
        Output CSS file

Usage in Code

package main

import (
	"fmt"

	"github.com/zzwx/ifchanged"
)

func generateCSS() error {
	err := ifchanged.ExecuteCommand("go-run-sass", "-i", "./web/wireframe.scss", "-o", "./web/generated.css")
	if err != nil {
		fmt.Printf("Error: %s\n", err)
	} else {
		fmt.Printf("Done!\n")
	}
	return err
}

func main() {
	generateCSS()
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL