aboutsummaryrefslogtreecommitdiffstats
path: root/webui/pack_webui.go
diff options
context:
space:
mode:
Diffstat (limited to 'webui/pack_webui.go')
-rw-r--r--webui/pack_webui.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/webui/pack_webui.go b/webui/pack_webui.go
index bbddeb70..3eff71a5 100644
--- a/webui/pack_webui.go
+++ b/webui/pack_webui.go
@@ -9,13 +9,19 @@ import (
"os"
"path/filepath"
+ "github.com/shurcooL/httpfs/filter"
"github.com/shurcooL/vfsgen"
)
func main() {
var cwd, _ = os.Getwd()
- webUIAssets := http.Dir(filepath.Join(cwd, "webui/build"))
+ webUIAssets := filter.Skip(
+ http.Dir(filepath.Join(cwd, "webui/build")),
+ func(path string, fi os.FileInfo) bool {
+ return filter.FilesWithExtensions(".map")(path, fi)
+ },
+ )
fmt.Println("Packing Web UI files ...")