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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
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