Skip to content

Commit

Permalink
Merge pull request #29 from arturparkhisenko/changed-injected-scripts…
Browse files Browse the repository at this point in the history
…-prefix

Changed logic about injected scripts prefix
  • Loading branch information
cereallarceny committed Oct 4, 2018
2 parents 35a7c3f + b6b2c2b commit ded448e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/loader.js
Expand Up @@ -86,7 +86,7 @@ export default (req, res) => {
<Loadable.Capture report={m => modules.push(m)}>
<Provider store={store}>
<StaticRouter location={req.url} context={context}>
<Frontload isServer>
<Frontload isServer={true}>
<App />
</Frontload>
</StaticRouter>
Expand All @@ -112,7 +112,7 @@ export default (req, res) => {

// Let's format those assets into pretty <script> tags
const extraChunks = extractAssets(manifest, modules).map(
c => `<script type="text/javascript" src="/${c}"></script>`
c => `<script type="text/javascript" src="/${c.replace(/^\//, '')}"></script>`
);

// We need to tell Helmet to compute the right meta tags, title, and such
Expand Down

0 comments on commit ded448e

Please sign in to comment.