I want to add a prefix (\"/static/\") to every static url generated by webpack. However I want the generated bundle to ignore this, so app.js and staticfiles all end up in the
In webpack.config.js set the publicPath option.
output: { path: "/home/proj/public/assets", publicPath: "/static/" }
https://github.com/webpack/docs/wiki/configuration#outputpublicpath