I cannot seem to figure out the right recipe for public path in config, as well as a reference to the image path in the css so that background images in the ‘yarn run start’ mode work.
{
"entry": {
"main": [
"./scripts/main.js",
"./styles/main.scss"
],
"customizer": [
"./scripts/customizer.js"
]
},
"publicPath": "/wp-content/themes/msgpwebteam",
"devUrl": "http://localhost:8080/FSX",
"proxyUrl": "http://localhost:3000/FSX",
"cacheBusting": "[name]_[hash:8]",
"watch": [
"app/**/*.php",
"config/**/*.php",
"resources/views/**/*.php"
]
}
and then in my css i’d have something like
`background: url($image-path + 'image.jpg');`
with
$image-path: '../images';
My output on the start option is
background: url(http://localhost:3000/FSX/../images/bg-image.jpg);
while with build it’s
`http://localhost:8080/FSX/wp-content/themes/msgpwebteam/dist/images/bg-image.jpg`
What needs to be done so these are consistent?