I'm having trouble with my Webpack configuration as it's not processing CSS images set in the background property:
background: url('./hero.jpg') no-repeat right;
This is resulting in an error message that reads:
ERROR in ./src/app/components/Contact/Contact.style.scss (./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/app/components/Contact/Contact.style.scss)
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: Can't resolve 'assets/img/section/hero.jpg' in
I'm looking for guidance on what URL to use in the CSS property so that Webpack can properly recognize it. Any ideas?
Screenshot of dist directory:
https://i.sstatic.net/8996O.png
Screenshot of public directory: