Expand my Community achievements bar.

AEM LiveReload for Webpack on port 8081


Level 1


I am running an AEM authoring instance with webpack but I am working on a system that has port 8080 in use. How can I get the AEM instance to listen on port 8081?

1 Reply


Level 5

You can use the devServer.port option in the webpack config.

devServer: {
  port: 8081

Alternatively you can use the --port CLI option instead of changing your webpack config. So you'd run it like this:

webpack-dev-server --port 8081