You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ParcelJS and running npm run prod, it does not account for images being in different directory and thus when loading the page images are not loaded.
So i have background image placed in CSS (src folder) background-image: url(../img/cover.png);
After Parcel it moves all the files to one main folder but it does not change the cover.png destination. background-image: url(../cover.ff2eb614.png);
For me to fix i would need to remove . background-image: url(./cover.ff2eb614.png);
So I'm wandering is there a best practice for these things? So currently my workflow is build and copy all files to my VPS via sFTP
The text was updated successfully, but these errors were encountered:
When using ParcelJS and running
npm run prod
, it does not account for images being in different directory and thus when loading the page images are not loaded.So i have background image placed in CSS (src folder)
background-image: url(../img/cover.png);
After Parcel it moves all the files to one main folder but it does not change the cover.png destination.
background-image: url(../cover.ff2eb614.png);
For me to fix i would need to remove .
background-image: url(./cover.ff2eb614.png);
So I'm wandering is there a best practice for these things? So currently my workflow is build and copy all files to my VPS via sFTP
The text was updated successfully, but these errors were encountered: