Skip to content
New issue

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

[Bug] Themes are unable to import local files to their stylesheet #320

Open
3 tasks done
intrnl opened this issue Mar 17, 2019 · 0 comments · May be fixed by #321
Open
3 tasks done

[Bug] Themes are unable to import local files to their stylesheet #320

intrnl opened this issue Mar 17, 2019 · 0 comments · May be fixed by #321
Labels
bug Something isn't working

Comments

@intrnl
Copy link

intrnl commented Mar 17, 2019

  • Used appropriate template for the issue type
  • Searched both open and closed issues for duplicates of this issue
  • Title adequately and concisely reflects the feature or the bug

Describe the bug

Title explains it all, themes are unable to import local files on the theme's directory with relative path.

To Reproduce

theme/
  background.jpg
  config.json
  index.scss
// index.scss
body {
  background-image: url('./background.jpg');
}

Expected behavior

The relative path should be transformed into the base64'd version of the file that was pointed at.

body {
  background-image: url(data:image/png;base64,d2h5IGRpZCB5b3UgZXZlbiBib3RoZXIgZGVjb2RpbmcgdGhpcywgaXQncyBwb2ludGxlc3MsIHN0b3AgaXQu);
}

Screenshots

No screenshots necessary

System information

Manjaro Linux 5.0.2, Discord Stable

Additional context

plsfix

Are you willing and able to fix this?

Perhaps.

@intrnl intrnl added the bug Something isn't working label Mar 17, 2019
@samuelthomas2774 samuelthomas2774 linked a pull request Mar 17, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant