package utils import ( "crypto/sha512" "encoding/base64" "fmt" "io" "net/http" "os" "path/filepath" "regexp" "strings" "sync" "time" "github.com/tdewolff/minify/v2" "github.com/tdewolff/minify/v2/css" "github.com/tdewolff/minify/v2/html" "github.com/tdewolff/minify/v2/js" ) // MinifierOptions configuration for the asset minification process type MinifierOptions struct { // Maximum number of goroutines to use for concurrent processing MaxWorkers int // Skip files that haven't changed since last run SkipUnchanged bool // Special file mappings (source path -> destination path) SpecialMappings map[string]string // Whether to remove comments from all file types RemoveComments bool // Whether to keep conditional comments (