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
intrnl opened this Issue Mar 17, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@intrnl
Copy link

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 label Mar 17, 2019

@samuelthomas2774 samuelthomas2774 referenced a pull request that will close this issue Mar 17, 2019

Open

Process `url`s when compiling SCSS #321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.