forked from x/icebergs
opt some
This commit is contained in:
parent
87d36b4437
commit
9db39a4abb
@ -118,7 +118,7 @@ func _dir_list(m *ice.Message, root string, dir string, level int, deep bool, di
|
||||
}
|
||||
if deep && isDir {
|
||||
switch s.Name() {
|
||||
case "node_modules", "usr":
|
||||
case "node_modules", "pluged":
|
||||
continue
|
||||
}
|
||||
_dir_list(m, root, pp, level+1, deep, dir_type, dir_reg, fields)
|
||||
|
@ -20,7 +20,7 @@ func _binpack_file(m *ice.Message, w io.Writer, arg ...string) {
|
||||
if kit.IsIn(kit.Ext(arg[0]), "zip", "gz") {
|
||||
return
|
||||
}
|
||||
if kit.Contains(arg[0], "/node_modules/", "/dist/", "/bin/", "/usr/", "/log/") {
|
||||
if kit.Contains(arg[0], "/node_modules/", "/dist/", "/bin/", "/log/") {
|
||||
return
|
||||
}
|
||||
if strings.HasPrefix(arg[0], "usr/volcanos/publish/") && !strings.HasSuffix(arg[0], "/proto.js") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user