freezedev / grunt-amd-tamer

Tames AMD modules, like making anonymous modules named.
The Unlicense
3 stars 3 forks source link

Names for modules in subfolders use wrong slashes on windows #20

Open AmyAmy opened 8 years ago

AmyAmy commented 8 years ago

generates the following name: define("components\new\file" should be define("components/new/file",

seems like an easy fix

moduleName = moduleName.replace(/\\/g, "/"); after the var moduleName = path.join(path.dirname(filepath), path.basename(filepath,extension)); seems to do the trick, not sure if that's the proper way to do that tho