We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a scss file that looks like this:
index.scss
body { background-image: url(@src/logo.svg); }
When I build the project, the resulting css file will contain the same @src/logo.svg url, which is invalid.
@src/logo.svg
Note that I have configured esbuild and the sassPlugin to resolve @src to the correct path.
@src
Also note that a similar thing happens in the following case:
index.jsx
import Logo from "@src/logo.svg?url";
The resulting index.js file will contain @src/logo.svg (which is incorrect).
index.js
The correct behaviour would be to resolve the path to its final path. Eg, if my esbuild config is
assetNames: "[dir]/[name].[hash]",
then the url should look like /logo.8Fgx1Fgm.svg
/logo.8Fgx1Fgm.svg
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a scss file that looks like this:
index.scss
When I build the project, the resulting css file will contain the same
@src/logo.svg
url, which is invalid.Note that I have configured esbuild and the sassPlugin to resolve
@src
to the correct path.Also note that a similar thing happens in the following case:
index.jsx
The resulting
index.js
file will contain@src/logo.svg
(which is incorrect).The correct behaviour would be to resolve the path to its final path. Eg, if my esbuild config is
then the url should look like
/logo.8Fgx1Fgm.svg
The text was updated successfully, but these errors were encountered: