question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple webpack entry points not possible anymore

See original GitHub issue

I updated my project with the latest changes from react starter kit and this commit by @frenzzy changed tools/start.js line 36/34 from

config.entry = ['webpack-hot-middleware/client'].concat(config.entry);

to

config.entry = ['react-hot-loader/patch', 'webpack-hot-middleware/client', config.entry];

Replacing .concat removes the possibility to have multiple entry points in tools/webpack.config.js

Was there any specific reasons to change it?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
frenzzycommented, Nov 4, 2016

If you change entry points, you also should change this line.

For example different entry points can be specified like so:

entry: {
  main: './client.js',
  home: './routes/home.js',
  about: './routes/about.js'
}

And maybe hot reload needed only for one of them or for all, who knows?

0reactions
mxmtskcommented, Nov 4, 2016

@tamerelsayed what issue? I have bootstrap-loader integrated successfully

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack 5, dev-server 4.0.0beta - multiple entry point routes ...
I have 2 entry points in my webpack.config.js : app , and play I ... I expect to be able to access the...
Read more >
Webpack-dev-server HMR not working with multiple entry points
However my dev console does not log any HMR output anymore and nothing happens. It seems like HMR has stopped working in my...
Read more >
Entry Points - webpack
Entry Points. As mentioned in Getting Started, there are multiple ways to define the entry property in your webpack configuration. We will show...
Read more >
A Beginner's Guide to Webpack - SitePoint
Learn the core concepts to help you get started with webpack, the popular static module bundler. We'll help you understand how webpack works ......
Read more >
Introduction to modern Web development with Webpack 4
Apart from Webpack configuration, there is one more case where repeating is possible: bundles. Imagine multiple entry points like the 2 entry points...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found