Skip to content

Commit

Permalink
Move webpack manifest to after body but before loading other scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Mar 14, 2017
1 parent 6b4dca2 commit 4ba57c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = (locals, callback) => {
// Add the chunk-manifest as a head component.
const chunkManifest = require("!raw!public/chunk-manifest.json")

headComponents.push(
postBodyComponents.unshift(
<script
id="webpack-manifest"
dangerouslySetInnerHTML={{
Expand Down Expand Up @@ -99,7 +99,7 @@ module.exports = (locals, callback) => {
)

// Add script tags for the bottom of the page.
postBodyComponents.unshift(
postBodyComponents.push(
<script key={prefixedScript} src={prefixedScript} />,
)
})
Expand Down

0 comments on commit 4ba57c8

Please sign in to comment.