/bud/hot url points to wp-env host rather than webpack dev host

Ok guys thanks for attention but I think I have figured it out. I completely forgot the way webpack works and was assuming that it does work same way as vite does (why did I think that?)

export default (bud) => {
  bud
    .setPath(`@src`, `resources`)
    .setUrl(`http://localhost:3000`)
    .setProxyUrl(`http://localhost:8888`)
    .alias(`@editor`, bud.path(`@src`, `editor`))
    .entry(`index`, `@editor/index.js`)
    .minimize(bud.isProduction);
};

I simply had to use localhost:3000 and proxy localhsot:8888 this way all rquests from localhost:3000 appart from built assets are served from localhost:8888

1 Like