mirror of
https://shylinux.com/x/icebergs
synced 2025-05-01 19:19:24 +08:00
opt some
This commit is contained in:
parent
ba581c4ea7
commit
888060e32c
@ -29,11 +29,11 @@ func _webpack_css(m *ice.Message, css, js io.Writer, p string) {
|
|||||||
fmt.Fprintln(js, `Volcanos.meta.cache["`+path.Join(ice.PS, p)+`"] = []`)
|
fmt.Fprintln(js, `Volcanos.meta.cache["`+path.Join(ice.PS, p)+`"] = []`)
|
||||||
}
|
}
|
||||||
func _webpack_js(m *ice.Message, js io.Writer, p string) {
|
func _webpack_js(m *ice.Message, js io.Writer, p string) {
|
||||||
fmt.Fprintln(js, `_can_name = "`+path.Join(ice.PS, p)+`"`)
|
fmt.Fprintln(js, `_can_name = "`+path.Join(ice.PS, p)+`";`)
|
||||||
fmt.Fprintln(js, m.Cmdx(nfs.CAT, strings.TrimPrefix(p, ice.REQUIRE+ice.PS)))
|
fmt.Fprintln(js, m.Cmdx(nfs.CAT, strings.TrimPrefix(p, ice.REQUIRE+ice.PS)))
|
||||||
}
|
}
|
||||||
func _webpack_node(m *ice.Message, js io.Writer, p string) {
|
func _webpack_node(m *ice.Message, js io.Writer, p string) {
|
||||||
fmt.Fprintln(js, `_can_name = "`+path.Join(ice.PS, p)+`"`)
|
fmt.Fprintln(js, `_can_name = "`+path.Join(ice.PS, p)+`";`)
|
||||||
fmt.Fprintln(js, m.Cmdx(nfs.CAT, strings.Replace(p, "require/node_modules/", "src/node_modules/", 1)))
|
fmt.Fprintln(js, m.Cmdx(nfs.CAT, strings.Replace(p, "require/node_modules/", "src/node_modules/", 1)))
|
||||||
fmt.Fprintln(js, `Volcanos.meta.cache["`+path.Join(ice.PS, p)+`"] = []`)
|
fmt.Fprintln(js, `Volcanos.meta.cache["`+path.Join(ice.PS, p)+`"] = []`)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user