less / less/less.js

Importing CSS file as reference fails silently

Open
#2,878 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request low priority up-for-grabs
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

Following discussion on https://github.com/less/less-docs/pull/400, there's a silent buggy behaviour on the Less importer engine, where importing as reference a CSS file will do nothing. Instead, it is expected the CSS file would be interpreted as less or a warning should be given explaining this CSS-as-reference is not valid.

Contributor guide

Open the contributing guide

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

Start by locating the Less importer engine and review the discussion in less/less-docs#400 for the intended CSS-as-reference behavior. Trace how an imported CSS file is handled when marked as a reference. Done means the behavior is no longer silently ignored: it is interpreted as Less or produces an explanatory warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
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.