Skip to content

Webpack hot reloading examples#600

Merged
Konstiman merged 1 commit intodevfrom
webpack-examples-reload
Nov 15, 2021
Merged

Webpack hot reloading examples#600
Konstiman merged 1 commit intodevfrom
webpack-examples-reload

Conversation

@Konstiman
Copy link
Copy Markdown
Contributor

On the npm run, the whole Headstart folder was served as static, which caused a reload on any file change.

This issue has started happening with the new Webpack - it was either a mistake I made during the migration, or the new Webpack simply doesn't ignore changes on some static-served files, such as .git.

I fixed that by setting only the examples/ folder as static.

This change doesn't have any impact on the deployment - it affects purely the npm run local server.

For the local server, it has one consequence: the local examples are now served on the following adresses:

http://localhost:8080/local_files/
http://localhost:8080/local_streamgraph/
http://localhost:8080/project_website/base.html
http://localhost:8080/project_website/pubmed.html

I added this to the READMEs.

In the main README, I also updated the info about required node and npm versions to match our recent decisions.

And finally, I added myself to the project authors in the main README - or at least I hope I belong there too...? 😄

@Konstiman Konstiman merged commit 3b9a2b7 into dev Nov 15, 2021
@chreman chreman deleted the webpack-examples-reload branch November 26, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant