node-uglifier icon indicating copy to clipboard operation
node-uglifier copied to clipboard

replace __dirname with absolute path

Open arvindUKore opened this issue 9 years ago • 1 comments

Hi, Is there a way that you can replace __dirname with the absolute path since the directory file structure is not maintained?

arvindUKore avatar Dec 02 '15 11:12 arvindUKore

Probably replacing __dirname with the path of the main.js that you uglify is a good solution. Than the substitution engine can try finding the file and merge it. There might be some edge cases though.

zsoltszabo avatar Jan 31 '17 12:01 zsoltszabo