Update plugin.go
This commit is contained in:
parent
8a8184da98
commit
9c6bdc65f0
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ type (
|
|||
BuildDrafts bool
|
||||
BuildExpired bool
|
||||
BuildFuture bool
|
||||
Minify bool
|
||||
CacheDir string
|
||||
Config string
|
||||
Content string
|
||||
|
|
@ -82,6 +83,9 @@ func commandBuild(config Config) *exec.Cmd {
|
|||
if config.BuildFuture {
|
||||
args = append(args, "-F")
|
||||
}
|
||||
if config.Minify {
|
||||
args = append(args, "--minify")
|
||||
}
|
||||
// add string args
|
||||
if config.CacheDir != "" {
|
||||
args = append(args, "--cacheDir", config.CacheDir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue