Skip to content

Commit

Permalink
fix workspace prod template
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina committed May 16, 2024
1 parent 80e35a0 commit cd70eeb
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@
<script src="<%= htmlWebpackPlugin.files.js %>"></script>
{% endaddtoblock %}

{% addtoblock "js" %}
{% addtoblock "react_assets" %}
{% if debug and react_flag %}
<script type="module">
import RefreshRuntime from 'http://localhost:4200/static/react-assets/@react-refresh';
RefreshRuntime.injectIntoGlobalHook(window);
window.$RefreshReg$ = () => {};
window.$RefreshSig$ = () => (type) => type;
window.__vite_plugin_react_preamble_installed__ = true;
<script type="module">
import RefreshRuntime from 'http://localhost:4200/static/react-assets/@react-refresh';
RefreshRuntime.injectIntoGlobalHook(window);
window.$RefreshReg$ = () => {};
window.$RefreshSig$ = () => (type) => type;
window.__vite_plugin_react_preamble_installed__ = true;
</script>
<script type="module" src="http://localhost:4200/static/react-assets/@vite/client"></script>
<script type="module" src="http://localhost:4200/static/react-assets/src/main.tsx"></script>
{% else %}
<!--TODO: setup non-dev static import for React code-->
{% include "react-assets.html" %}
{% endif %}
{% endaddtoblock %}

Expand Down

0 comments on commit cd70eeb

Please sign in to comment.