Roots Discourse

Build production doesn't update image path for /dist/

hello everyone

when I try to build with images loaded via SCSS, let’s say: background-image: url(../../images/logo-chiaro@2x.png);
according to the development folder structure:

/assets/
  | – /styles/
  | –– /subfolders/
  | – /images/

the build fails according to this https://roots.io/docs/sage/9.x/compiling-assets/#theme-assets

therefore, IF I manually update each path to the “build 2 be” version: background-image: url(../images/logo-chiaro@2x.png);
as if they were ALREADY build in dist folder, it works.

is that possible, that the compiling can’t manage the path update on its own and it’s on me?

tyvm

Yup, it’s on you to account for that.