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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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