Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Changing entry disabled hot reloading #463

Closed
padcom opened this issue Jul 9, 2018 · 4 comments
Closed

Changing entry disabled hot reloading #463

padcom opened this issue Jul 9, 2018 · 4 comments

Comments

@padcom
Copy link

padcom commented Jul 9, 2018

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Setting entry to anything other than main disables hot reloading of changes

If the current behavior is a bug, please provide the steps to reproduce.

module.exports = {
  entry: {
    index: './index',
  },
}

What is the expected behavior?
Sometimes it is necessary to adjust the generated file name so that it is not main.js and main.css - especially if adding POI as build step to existing projects.
I expect that changing entry name doesn't disable hot reloading. This should also hold true for multiple entry points.

Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.

POI: 10.2.9

@padcom
Copy link
Author

padcom commented Jul 9, 2018

If that is too much of a problem (which it definitely shouldn't be) at the very least mention that in the documentation. There is no mentioning of it in the docs and previous version (9.x) didn't have that feature.

@egoist
Copy link
Owner

egoist commented Sep 10, 2018

you can use filename to change the filename.

you can also use hotEntry option to make specific entry hot reloadable.

1 similar comment
@egoist
Copy link
Owner

egoist commented Sep 10, 2018

you can use filename to change the filename.

you can also use hotEntry option to make specific entry hot reloadable.

@padcom
Copy link
Author

padcom commented Sep 10, 2018

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants