GithubHelp home page GithubHelp logo

Comments (7)

jeffkamo avatar jeffkamo commented on May 22, 2024

I'm having the same issue. Is there a work around?

from webpackmonitor.

roachjc avatar roachjc commented on May 22, 2024

Hey @jaepd and @jaepd. Thank you for getting in touch!

Yeah it won't work on hot reloading I'm afraid, and nor should it want to. But would be good to handle this a bit better than erroring ... so sorry for that!

As for a workaround, don't include it in the webpack config that runs hot reload. The idea is that wpm is really only worth using for production builds where your optimization will take effect and builds will only take place periodically. It's just to keep a record of your proper builds and a mechanism to refer to that record, rather than something you're going to be looking at as you write your project and while you're using hot reload.

Hope that is of some help!

Thank you for your feedback! Defo will look at handling this more 'gracefully' 😬

from webpackmonitor.

jeffkamo avatar jeffkamo commented on May 22, 2024

That makes a lot of sense! Moving the plugin to our production webpack config did the trick.

Thanks for clarifying!

from webpackmonitor.

jadennnn avatar jadennnn commented on May 22, 2024

Hey thanks for confirming & yes it would be nice to see a little message :)

from webpackmonitor.

DanielRuf avatar DanielRuf commented on May 22, 2024

production webpack config

This makes not much sense in production mode.

from webpackmonitor.

DanielRuf avatar DanielRuf commented on May 22, 2024

Watch mode should be supported. Running this in production on a server is not a good idea.

from webpackmonitor.

DanielRuf avatar DanielRuf commented on May 22, 2024

At least it seems the data is not reloaded. I started two webpack instances. One launches wpm and the other doesn't but writes / should write to the file.

But the client does not reload the new data. Even if I manually edit the json file and reload in the browser it does not work. And I guess this is the root problem.

See how the developers of jarvis do it
https://github.com/zouhir/jarvis/search?utf8=%E2%9C%93&q=hot&type=

from webpackmonitor.

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.