GithubHelp home page GithubHelp logo

hmr doesnt work about typescript-starter HOT 5 CLOSED

yaroslavya avatar yaroslavya commented on May 21, 2024
hmr doesnt work

from typescript-starter.

Comments (5)

yaroslavya avatar yaroslavya commented on May 21, 2024 2

Thanks for the explanation, Kamil, now its clear.
To anyone who stumble upon this issue: the build rebuild is very fast and takes less than a second for me.
The website started with webpack and start:hmr is not going to be reloaded automatically.

from typescript-starter.

kamilmysliwiec avatar kamilmysliwiec commented on May 21, 2024 1
the app opened in chrome is not reloading automatically

You probably misunderstood hmr feature. See console output here: https://medium.com/@kammysliwiec/nest-5-the-official-release-node-js-in-2018-1b6d3a47b104

from typescript-starter.

xgenvn avatar xgenvn commented on May 21, 2024

Hi, so do you have clue how to make it reload automatically? Should I decrease the webpack watcher timeout, or make the app more complicated to test hot reload?

from typescript-starter.

yaroslavya avatar yaroslavya commented on May 21, 2024

@xgenvn the point is that app is not reloaded by the browser automatically. Heres an abstract of the article that Kamil have referenced: "Thanks to the webpack hot reload feature, your application will apply changes even within 1–2 seconds, reducing amount of time spent on the compilation to an absolute minimum."
So the point of the feature is to improve the build and decrease the build time. You can see a gif in Kamils post that shows exactly that. Let me know if its not clear yet.

from typescript-starter.

xgenvn avatar xgenvn commented on May 21, 2024

@yaroslavya ah, got it. Thank you ;).

from typescript-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.