webpack-dev-server can be used to quickly develop an application. Options that are compatible with webpack-dev-middleware have a key icon next to them. This set of options is picked up by webpack-dev-server and can be used to change its behavior in various ways. When the server is started, there will be a message prior to the list of resolved modules. If you're using dev-server through the Node.js API, the options in devServer will be ignored. Pass the options as a second parameter instead: new WebpackDevServer(compiler, {...}). Be aware that when exporting multiple configurations only the devServer options for the first configuration will be taken into account and used for all the configurations in the array. HTML template is required to serve the bundle, usually it is an index.html file. Make sure that script references are added into HTML, webpack-dev-server doesn't inject them automatically.

Features

  • You can invoke webpack-dev-server via CLI
  • Provides the ability to execute custom middleware after all other middleware internally within the server
  • Allows you to whitelist services that are allowed to access the dev server
  • Provides the ability to execute custom middleware prior to all other middleware internally within the server
  • Enable gzip compression for everything served
  • It is also possible to serve from multiple directories in case you want to serve static content at multiple URLs

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow webpack DevServer

webpack DevServer Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of webpack DevServer!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Browsers, JavaScript Software Development Software

Registered

2021-08-09