Home / npm packages / webpack-dev-server

webpack-dev-server source code

Every file of webpack-dev-server@6.0.0 as published on npm: 28 files, 467 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), child_process, process.env, fetch().

What webpack-dev-server uses

APIIn webpack-dev-server
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. client/index.js
See the lines
child_process
starts other programs
Yes: 1 file
e.g. bin/webpack-dev-server.js
See the lines
process.env
reads environment variables
Yes: 3 files
e.g. dist/Server.js
See the lines
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 1 file
e.g. client/overlay.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
lib/Server.js113 KB
dist/Server.js107 KB
types/lib/Server.d.ts47 KB
client/modules/logger/index.js31 KB
dist/options.json30 KB
lib/options.json30 KB
client/index.js23 KB
client/overlay.js23 KB
README.md20 KB
client/progress.js12 KB
package.json5.9 KB
bin/webpack-dev-server.js4.3 KB
dist/getPort.js3.6 KB
lib/getPort.js3.5 KB
dist/servers/WebsocketServer.js2.8 KB
lib/servers/WebsocketServer.js2.7 KB
client/clients/WebSocketClient.js2.4 KB
client/socket.js2.4 KB
LICENSE1.1 KB
types/lib/servers/WebsocketServer.d.ts601 B
dist/servers/BaseServer.js562 B
client/utils/log.js551 B
client/utils/sendMessage.js504 B
types/lib/servers/BaseServer.d.ts466 B
lib/servers/BaseServer.js442 B
types/bin/webpack-dev-server.d.ts369 B
types/lib/getPort.d.ts241 B
dist/package.json25 B

Questions

How many files are in webpack-dev-server?

Version 6.0.0 of webpack-dev-server publishes 28 files of source, 467 KB in all, not counting images, fonts and source maps.

Does webpack-dev-server use eval?

No: webpack-dev-server doesn't call eval() anywhere in its published files.

Does webpack-dev-server start other programs?

Yes: webpack-dev-server uses child_process in 1 of its files.

Does webpack-dev-server run an install script?

No: webpack-dev-server has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine