[X] This is not a personal support request that should be posted on the Roots Discourse community
Describe the issue
What's wrong?
So I have this scss file located at ./resources/styles/components/_button.scss
Within this file I am linking to an image like so: url('~@images/svg/arrow-blue.svg') < I also tried it without the ~@ and only with ~.
The image is located at ./resources/images/svg.
After building the assets, the chrome console shows the stylesheet is trying to load an url pointing to just 'website.dev/images/arrow-blue.svg'.
I already set the public path in the config. My config is below.
What have you tried?
I have tried changing the bud config, but with no result.
What insights have you gained?
None, after hopelessly going trough a lot of sites.
Possible solutions
I hope to get one.
Temporary workarounds
None.
Expected Behavior
That it loads the correct image path.
Actual Behavior
Links to a wrong path.
Steps To Reproduce
Install bedrock with sage starter theme, configure bud, create and at a folder at resources/images/svg/image.svg then try to load it within a stylesheet located in a sub directory with resources/styles.
Agreement
Describe the issue
What's wrong?
So I have this scss file located at ./resources/styles/components/_button.scss Within this file I am linking to an image like so: url('~@images/svg/arrow-blue.svg') < I also tried it without the ~@ and only with ~. The image is located at ./resources/images/svg.
After building the assets, the chrome console shows the stylesheet is trying to load an url pointing to just 'website.dev/images/arrow-blue.svg'.
I already set the public path in the config. My config is below.
What have you tried?
I have tried changing the bud config, but with no result.
What insights have you gained?
None, after hopelessly going trough a lot of sites.
Possible solutions
I hope to get one.
Temporary workarounds
None.
Expected Behavior
That it loads the correct image path.
Actual Behavior
Links to a wrong path.
Steps To Reproduce
Install bedrock with sage starter theme, configure bud, create and at a folder at resources/images/svg/image.svg then try to load it within a stylesheet located in a sub directory with resources/styles.
version
6.6.2
What package manager are you using?
yarn classic
version
1.22.17
Logs
No response
Configuration
Relevant .budfiles
No response