2👍
You can set the public path by changing the output parameter in the webpack configuration.
https://webpack.js.org/configuration/output/#output-publicpath
publicPath: "https://cdn.example.com/assets/", // CDN (always HTTPS)
publicPath: "//cdn.example.com/assets/", // CDN (same protocol)
publicPath: "/assets/", // server-relative
publicPath: "assets/", // relative to HTML page
publicPath: "../assets/", // relative to HTML page
publicPath: "", // relative to HTML page (same directory)
Source:stackexchange.com