When I compile this SCSS .osu-stadium { background-image: url(../images/ohio-stadium.jpg); background-size: cover; background-repeat: no-repeat; width: 100%; background-position: center top; }
I get this .osu-stadium { background-image: url(/app/themes/sportsmarquee/dist/images/ohio-stadium.jpg); background-size: cover; background-repeat: no-repeat; width: 100%; background-position: center top; }
The path in the compiled CSS should be background-image: url(../images/ohio-stadium.jpg);
This is a new install of Sage 9.x. What setting do I have wrong?
Nothing wrong, this is the expected output. If you have saved ohio-stadum.jpg in /app/themes/sportsmarquee/resources/assets/images, it should all work fine, since the images are copied into the dist directory (and optimized if building for production).
It throws and error but if I add single quotes around ‘/wp-content/themes/sportsmarquee/dist/ yarn build:production’ it compiles but the css still includes the /app/themes/sportsmarquee/dist/images/
thank you for your help everyone.
Could you tell me where to change the value of this SAGE_DIST_PATH variable ? or should a change and uncomment this line 49 ?
thans