Closed
Description
Preconditions (*)
- Blank Magento 2.3.2, 2.3-develop with a custom theme(or just Luma)
- Server side compiling enabled
- PHP 7.1.26 & 7.2
Steps to reproduce (*)
- On a .less file, import the following URL, according to the documentation:
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
- Clear
pub/static/*
- Run
bin/magento setup:static-content:deploy -f
Expected result (*)
- The LESS code should be compiled successfully
Actual result (*)
- You get the following error:
[2019-10-17 11:21:16] report.ERROR: File https://fonts.googleapis.com/icon not found. in styles-l.less [] []
Root cause
We were able to track down the issue down to the less.php library. This URL doesn't work because it doesn't have the "css" word in it, which the library takes into account when importing css files: https://github.com/wikimedia/less.php/blob/master/lib/Less/Tree/Import.php#L44
Not sure how we can fix this in Magento (the library project doesn't have an issue queue), so maybe we can update the documentation instead?
I couldn't find a similar ticket to this, but maybe it's a duplicate. If so feel free to close
Metadata
Metadata
Assignees
Labels
Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.3 releaseIssue related to Developer Experience and needs help with Triage to Confirm or Reject it