Coder Social home page Coder Social logo

Comments (5)

mbehzad avatar mbehzad commented on May 9, 2024 2

Hi @DimitarNestorov, you are right, webpack monitor is not ment to be used in a watch mode:
(from #48):

Typically you'd insert webpack monitor as a plugin on your production config and only periodically launch the dashboard.

and the reason being:

the idea being that we are not so concerned about the state of the non-optimized dev builds

That's why on each run a new express instance is started and when the old one blocks the port, an error is trown.
You could set the launch flag to false, or move this to your production webpack config.
maybe webpack monitor will support this one day.
you can also have a look at some similar issues:
EADDRINUSE on compile #48
Support for hot reloading #69
throw error on port 8081 when editing code #78

from webpackmonitor.

DimitarNestorov avatar DimitarNestorov commented on May 9, 2024 1

I am going to use webpack monitor to focus on optimizing the production build.
My issue as that if I don't use watch mode I have to wait 5+ mins between each build in order to see the result.
In order to achieve the result I want right now I will use capture: true, --watch and run the webpack monitor express instance without launch: true in the webpack config.

So the ideal situation is capture and launch both to be true and the webpack watcher not to crash.

And auto reload (but I will do it myself using BrowserSyncPlugin [proxy: 'http://localhost:8081/'])

from webpackmonitor.

mbehzad avatar mbehzad commented on May 9, 2024

@DimitarNestorov , you said supporting a watch mode would be your feature request. What would be your use case, or what behavior would you expect?

  • with the current default behavior, when the capture flag in on, then each small change would result to a new point in the chart and the stats would be bloated pretty fast.
  • capture: false would allow a stats server to run and show the captured stats, but local changes would not be visualized in the charts.
  • another option would be to not capture the changes and save in the stats.json. but to show the current snapshot as the last point in the charts to be compared with captured data.

from webpackmonitor.

DanielRuf avatar DanielRuf commented on May 9, 2024

So the ideal situation is capture and launch both to be true and the webpack watcher not to crash.

Definitely. This is what I expected.

from webpackmonitor.

DanielRuf avatar DanielRuf commented on May 9, 2024

It still says

A tool for monitoring webpack optimization metrics through the development process

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.