
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
multi-user-dev-server
Advanced tools
Create a webpack dev server that supports multiple users (or configs) on one port.
This creates a web service that runs webpack --watch for multiple users/configs. It can be controlled by a simple web API.
Try example/app.js with
npm install
npm start
curl --data '' http://localhost:8080/bundle/user1
curl --data '' http://localhost:8080/bundle/user2
curl --data '' http://localhost:8080/reload/user1
curl --data '' http://localhost:8080/reload/user2
const multiUserDevServer = require('multi-user-dev-server');
const app = multiUserDevServer(username => {
return {
// The path to this user's webpack config
configPath: `${__dirname}/${username}/webpack.config.js`,
// The `env` to pass into the webpack config
webpackEnv: {},
// What to respond with for `GET /:username` (optional)
successResponse: `Bundle completed in ${__dirname}/${username}`,
};
}, 3600 /* seconds after which unaccessed webpack instances will be stopped */);
app.listen(8080);
Start building username's webpack bundle and wait until it completes. If it's already building, this will wait to respond until building is complete.
POST /bundle/:username
Reload username's webpack config.
POST /reload/:username
FAQs
Create a webpack dev server that supports multiple users (or configs) on one port.
The npm package multi-user-dev-server receives a total of 1 weekly downloads. As such, multi-user-dev-server popularity was classified as not popular.
We found that multi-user-dev-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.