angular2-template-loader icon indicating copy to clipboard operation
angular2-template-loader copied to clipboard

[Resolve problem] Deal with absolute path

Open tups-ibl opened this issue 7 years ago • 0 comments

Hello sir, I have seen that problem in #21 and #20, to deal with it, can you make an option to decide the path is either absolute or relative? For example: function replaceStringsWithRequires(string, option) { return string.replace(stringRegex, function (match, quote, url) { if (url.charAt(0) !== "." && !option) { url = "./" + url; } return "require('" + url + "')"; }); }

tups-ibl avatar Apr 25 '17 06:04 tups-ibl