Comments (7)
This should do it, eh? #50
from webpack-dashboard.
how would you go about doing that? in general?
from webpack-dashboard.
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.
That sounds pretty cool, I'll check that out
from webpack-dashboard.
@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.
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.
Think this can be closed but want to confirm /cc @kenwheeler @graingert
from webpack-dashboard.
Related Issues (20)
- why the border of table is 'qqq..' or 'xx' like the photo HOT 5
- after installing this plugin getting heap out of memory error HOT 2
- The module of the dashboard is always loading; HOT 6
- Getting heap overflow HOT 2
- How to get more readable names of modules? HOT 2
- Debugging the version skews problem HOT 2
- webpack-dashboard has undeclared dependency on chalk
- webpack v5 with express: compiler.apply is not a function HOT 1
- Webpack 5 warning message conflict HOT 2
- Webpack5 Support HOT 4
- Bug: "Success" status overwritten and stuck in "Compiling" for finished webpack build. HOT 2
- Love
- TS7016: Could not find a declaration file for module 'webpack-dashboard/plugin' HOT 8
- Deps: Update all deps.
- TypeError: Cannot read property 'type' of null HOT 6
- TypeError thrown when running in minimal mode HOT 2
- Run webpack dashboard from .js file. HOT 5
- Investigate increasing Maintainer Productivity with Pull Requests Environments
- I can not find the .d.ts file when I use webpack.config.ts HOT 1
- README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-dashboard.