How do I change webpack dev server’s default port from 8080 to a different port?

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

devServer: {
  port: 9000
}

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 9000 [other options]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)