Giter Club home page Giter Club logo

Comments (7)

kenwheeler avatar kenwheeler commented on May 9, 2024 1

This should do it, eh? #50

from webpack-dashboard.

kenwheeler avatar kenwheeler commented on May 9, 2024

how would you go about doing that? in general?

from webpack-dashboard.

graingert avatar graingert commented on May 9, 2024

Spawn a subprocess with webpack in and use a socket to communicate

This package wraps all this for you in a postMessage API:
https://www.npmjs.com/package/webworker-threads

On 16 Aug 2016 00:08, "Ken Wheeler" [email protected] wrote:

how would you go about doing that? in general?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZQTHWZfwt-M8r_EvQ7ivsI8thlSlITks5qgPFUgaJpZM4Jk268
.

from webpack-dashboard.

kenwheeler avatar kenwheeler commented on May 9, 2024

That sounds pretty cool, I'll check that out

from webpack-dashboard.

kenwheeler avatar kenwheeler commented on May 9, 2024

@graingert I got started, but it looks like because i'm using express, that spawns a new process for dev server, so I lose process.send.

https://github.com/FormidableLabs/webpack-dashboard/tree/separate-processes

How does a unix socket work? I feel like if I run webpack-dev-server -- nodemon index.js, thats like 3 processes down, and process.env stuff won't get picked up. What's a more global option?

from webpack-dashboard.

graingert avatar graingert commented on May 9, 2024

Yeah so you create a temporary directory and choose a path inside that
directory and pass it to
https://nodejs.org/api/net.html#net_server_listen_path_backlog_callback you
could also use a TCP socket with a random port.

You just need to connect to the same socket in your plugin by passing the
socket connection details in an environment variable or something

On 16 Aug 2016 23:41, "Ken Wheeler" [email protected] wrote:

@graingert https://github.com/graingert I got started, but it looks like
because i'm using express, that spawns a new process for dev server, so I
lose process.send.

https://github.com/FormidableLabs/webpack-dashboard/tree/separate-processes

How does a unix socket work? I feel like if I run webpack-dev-server --
nodemon index.js, thats like 3 processes down, and process.env stuff won't
get picked up. What's a more global option?


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZQTCkj9bv87xMTYkDn7XcjCK7JHxGGks5qgjyLgaJpZM4Jk268
.

from webpack-dashboard.

exogen avatar exogen commented on May 9, 2024

Think this can be closed but want to confirm /cc @kenwheeler @graingert

from webpack-dashboard.

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.