Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
fix web build (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
shavidzet authored and XanderLuciano committed Oct 23, 2018
1 parent b1f069a commit 8fae476
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions template/src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<body>
<div id="app"></div>
<!-- Set `__static` path to static files in production -->
<script>
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
</script>
<% if (!process.browser) { %>
<script>
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
</script>
<% } %>

<!-- webpack builds are automatically injected -->
</body>
Expand Down

0 comments on commit 8fae476

Please sign in to comment.