Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM LiveReload for Webpack on port 8081

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Level 6

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

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

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