We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @halt-hammerzeit
I know this might not be an issue , just putting as discussion thread.
Say I have multiple entry points in my webpack.config.js. e.g Home.js , About.js
webpack.config.js
Now on server side we have only one HTML file , how do we stop loading About.js while visiting Home ?
The text was updated successfully, but these errors were encountered:
It makes sense to have a single bundle (with only one entry point) on the server side because code splitting is pointless on the server (no latency)
Sorry, something went wrong.
In that case , we will have always app.js inside a <script> tag that is what you are trying to say,
<script>
in a case https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/helpers/Html.js#L53 Can't we just load page specific JS here ?
No, I'm speaking about the server-side bundle. The server-side bundle must not be placed inside <script/> tag.
<script/>
The client-side bundle is. And it retains all its entry points. You can console.log it to make sure it does.
console.log
No branches or pull requests
Hi @halt-hammerzeit
I know this might not be an issue , just putting as discussion thread.
Say I have multiple entry points in my
webpack.config.js
. e.g Home.js , About.jsNow on server side we have only one HTML file , how do we stop loading About.js while visiting Home ?
The text was updated successfully, but these errors were encountered: