Hey there, ran into a little snag. I’m working with the main Clover theme that I pulled from a @roots private repo. Originally, the repo didn’t have the enqueue process set up properly, but I sorted that part out and now the assets are loading just as they should.
There is a hiccup though, when in dev environment /bud/hot url does not point to webpack dev server instead it looks like its trying to load it from wp-env host which is localhost:8888
. But bud spits out something like that in dev mode inside built dev entry file which I can change manually:
let data = {
debug: true,
indicator: true,
log: true,
name: `@roots/bud-client`,
overlay: true,
// if I change this path to http://localhost:3000/bud/hot it loads properly
path: `/bud/hot`,
reload: true,
timeout: 2000,
};
Is there a way to do that from config?
/**
* @param {import('@roots/bud').Bud} bud
*/
export default (bud) => {
bud
.setPath(`@src`, `resources`)
.setUrl(3000)
.setPublicUrl(`http://localhost:3000`)
.setProxyUrl(3000)
.setPublicProxyUrl(`http://localhost:3000`)
.alias(`@editor`, bud.path(`@src`, `editor`))
.entry(`lt-index`, `@editor/index.js`)
.minimize(bud.isProduction);
};