Webpack Dev Server - config

Hi, I cannot get the webpack devServer working with SS5. Can an example of webpack.config.js please be shared? Am hoping to see code changes trigger a page reload. I think I need a proxy setting to redirect the site from MAMP. Here my config below:

const webpack = require(‘webpack’);
const path = require(‘path’);

module.exports = {
entry: “./public/javascript/src/main.js”,
mode: ‘development’,
output: {
filename: ‘main.js’,
path: path.resolve(__dirname, ‘public/javascript/dist’)
devServer: {
open: true,
proxy: [
context: [’/’],
target: ‘https://website_on_MAMP:8890’,

The js is bundled correctly. However, this results in an “Error occurred while trying to proxy: localhost:8080/” appearing in a new browser tab.

Any advice please? Thanks in advance.