Files
assetprecompiler/config.go
Parnic 2cd90c7b99 Added config support for specifying the output file prefix
This was hardcoded to "app-" because that's what I wanted mine to use. No real reason it has to be that way, though. Only offering a prefix is still pretty limiting, but better than hardcoding.
2020-03-07 10:55:44 -06:00

14 lines
467 B
Go

package precompiler
// Config holds information on how to run the compiler
type Config struct {
// Files is a list of files to precompile together
Files []string
// Minify specifies whether minification should happen along with concatenation
Minify bool
// OutputDir if specified will cause the result to be written to this directory
OutputDir string
// FilePrefix is a string that will be prefixed on the files if OutputDir is specified
FilePrefix string
}