This repository was archived by the owner on Oct 2, 2020. It is now read-only.
Respect less includePaths if specified in .compilerc #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a .less file,
/me/project/foo.less
that looks like this:ace-css
is present in thenode_modules
folder, so I configure.compilerc
as so:The file is compiled and placed into the cache. Problem is the
dependentFiles
field of the cache entry for/me/project/foo.less
looks like this:So the next time
/me/project/foo.less
is requested, everything explodes because/me/project/ace-css/css/ace.css
does not exist.The change in this PR is to look through the paths specified in the
.compilerc
file when working out the paths to dependent files before placing them into the cache.