-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
webpack 5 / devServer.socket miss #3409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
when i run
but there is no socket file in node + netHowever plain js file works fine and socket exists in folder after // node net.js
'use strict';
const SOCKET = '/var/run/n/nodejs.socket';
const fs = require("fs");
const net = require('net');
const unixSocketServer = net.createServer();
unixSocketServer.on('error', function (e) {
if (e.code == 'EADDRINUSE') {
console.log('Address in use, retrying...');
fs.unlinkSync(SOCKET);
unixSocketServer.listen(SOCKET, () => {
console.log('now recoverd');
});
setTimeout(function () {
}, 1000);
}
});
unixSocketServer.listen(SOCKET, () => {
console.log('now listening');
});
unixSocketServer.on('connection', (s) => {
console.log('got connection!');
s.write('hello world');
s.end();
}); |
|
do I understand correctly?
|
@politsin it is still under development, and in our roadmap, note:
were renamed to |
We return socket support, now it is called |
Спасибо огромное! |
не обратил внимание что v4.0.0-beta.3 от 6 May, т.е. изменения из мастер-ветки ещё не зафиксированы. |
release will be on this week |
спасибо! жду с нетерпением релиз |
понимаю что для релиза нужно много работы, и возможно есть какие-то блокирующие таски. |
I am working on the latest pr - migration guide for the rc release (after rc we will fix couple small bugs and do stable major release), anyway |
The task is to listen with webpack dev-server normal unix-socket (not a port)
There is no
devServer.socket
parameter in webpack 5 and there is no mention of it anywhere and no way to work aroundwebpack
4
parametrs listhttps://v4.webpack.js.org/configuration/dev-server/#devserversocket
webpack
5
parametrs listhttps://webpack.js.org/configuration/dev-server/#devserversockhost
Docs
The text was updated successfully, but these errors were encountered: