less / less/less-plugin-inline-urls

Ignore or properly resolve remote URLs

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
15
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Remote urls should be ignored or properly resolved. Right now, they are being searched as a path, ignoring the fact that they are on a fully-qualified domain:

RuntimeError: error evaluating function `data-uri`: ENOENT, no such file or directory '/var/www/https:/fonts.gstatic.com/s/sourcesanspro/v9/ODelI1aHBYDBqgeIAH2zlNHq-FFgoDNV3GTKpHwuvtI.woff' in /var/www/less/common/fonts.less on line 28, column 66:
27   font-weight: 400;
28   src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v9/ODelI1aHBYDBqgeIAH2zlNHq-FFgoDNV3GTKpHwuvtI.woff) format('woff');
29 }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the data-uri failure described for less/common/fonts.less using the fully qualified Google Fonts URL. Trace how the plugin handles that URL before it is searched as a path. Done means remote URLs are either ignored or resolved correctly without the shown local-path ENOENT error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.