remove concept of prod and dev assets
instead always do the "prod" thing, but use entr for restarting the server for all assets
This commit is contained in:
@@ -21,7 +21,7 @@ const (
|
||||
fileHeader = `// file generated with embed tool
|
||||
// do not edit
|
||||
|
||||
// +build %s
|
||||
// %s
|
||||
|
||||
package %s
|
||||
import "time"
|
||||
@@ -82,6 +82,9 @@ func processAssets(c *config, files []string) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "creating out path")
|
||||
}
|
||||
if c.tagList != "" {
|
||||
c.tagList = fmt.Sprintf("+build %s", c.tagList)
|
||||
}
|
||||
outWriter.Write([]byte(fmt.Sprintf(fileHeader,
|
||||
c.tagList,
|
||||
c.packageName,
|
||||
|
||||
Reference in New Issue
Block a user