That happens because output.publicPath by default is /.
Just update output.publicPath to point where you want it to be => /dist/.
That happens because output.publicPath by default is /.
Just update output.publicPath to point where you want it to be => /dist/.