webassets

package module
v0.0.0-...-e68362a Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 9 Imported by: 0

README

* go-webassets
  #+begin_src go
    package main

    import (
        "fmt"
        "io/ioutil"

        webassets "github.com/honmaple/go-webassets"
    )

    func main() {
        files := []string{"scss/main.scss"}
        filters := []string{"libscss", "cssmin"}

        assets := webassets.New()
        r, err := assets.Run(files, filters)
        if err != nil {
            fmt.Println(err)
            return
        }
        b, _ := ioutil.ReadAll(r)
        fmt.Println(string(b))
    }
  #+end_src

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *webassets

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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