Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Allow @import RegEx to find all Import Types #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Allow @import RegEx to find all Import Types #61

wants to merge 3 commits into from

Conversation

JanThiel
Copy link

@JanThiel JanThiel commented Sep 9, 2014

Added missing Import directives to RegEx:

  • once
  • reference
  • multiple
  • inline

getImports should now also return

@import (reference) file.less
@import (multiple) file.less
@import (once) file.less
@import (inline) file.less

fixes #60

Added missing Import directives to RegEx:
- once
- reference
- multiple
- inline

getImports should now also return

@import (reference) file.less
@import (multiple) file.less
@import (once) file.less
@import (inline) file.less
Extended the check whether a file should be treated as LESS import with the new directives.
Fixed regression after stupid Copy & Paste...
@JanThiel
Copy link
Author

I missed to extend the importType check in .resolveImports(). This is fixed so the imports are recognized correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LessSource.getImports() only returns imports with type (css), (less) or none set
1 participant