ncDocConverter/web/template/vitejs.tmpl.html

11 lines
390 B
HTML
Raw Normal View History

2022-09-22 13:22:58 +00:00
{{define "vitejs"}}
{{if .ServerConfig.Development}}
<script type="module">
import RefreshRuntime from "{{.ServerConfig.SourceServer}}@react-refresh"
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
</script>
{{end}}
{{end}}