Hi
I can’t load image from CSS, I’m using this:
background-image: url('../images/backgrounds/footer-bg-1.jpg');
but I get error
ERROR Failed to compile with 1 errors
This relative module was not found:
* ./images/backgrounds/footer-bg-1.jpg in ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/lib? ...
What’s the correct way?
Settings in config.json
"publicPath": "/wp-content/themes/project-name",
"devUrl": "http://project-name.test:9999",
"proxyUrl": "http://localhost:3000",
and config-local.json
{
"proxyUrl": "http://192.168.x.x:3000",
"open": "external"
}