radist2s / gulp-less-sourcemap

A LESS plugin for Gulp with sourcemap support
10 stars 5 forks source link

@imports get's absolute relative path appended to absolute path #6

Open dozer75 opened 7 years ago

dozer75 commented 7 years ago

In my base less file I have several imports that looks similar to this:

@import "../node_modules/font-awesome/less/font-awesome.less";

When the less operation is executed with a relative sourcemap folder all these imports gets the relative path prepended on the absolute path of the import like this:

"../../less/C:/<path to project>/node_modules/font-awesome/less/bordered-pulled.less"

All @import's should be stripped for the project path and replaced with the relative path.