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:

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

the build fails according to this

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?


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

This topic was automatically closed after 42 days. New replies are no longer allowed.