AEM LiveReload for Webpack on port 8081 | Community
Skip to main content
November 8, 2023
Solved

AEM LiveReload for Webpack on port 8081

  • November 8, 2023
  • 1 reply
  • 837 views

Hey,

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ibishika

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

 

1 reply

ibishika
ibishikaAccepted solution
Level 4
November 8, 2023

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