Should there be an images folder in /dist?

If I add a new less file in styles/layouts and then import it in main.less, how should I reference images in my new .less file?

In the roots theme, I used to do this with a background urls like:

  background-image: url('../img/man-fist-bg-wide-darkened.jpg');

My dist folder does not contain a subdirectory for images.

The gulp images task optimizes images from assets/images/ and places them in dist/images/

You should reference images from your styles with ../images/

1 Like

It doesn’t create a dist folder for me?

If you have an issue, consider starting your own thread, as your issue doesn’t seem to be connected to this one in any way.

Never mind, it worked after running gulp --production, and then gulp again.