Make the project buildable on windows

This commit is contained in:
Dmitriy Simushev 2015-01-23 11:34:24 +00:00
parent ea0b6a0cd5
commit ef98d5056a

View File

@ -329,7 +329,7 @@ var wrapHandlebarsTemplate = function() {
+ 'Handlebars.templates["<%= relative %>"] = <%= handlebars %>;\n'
+ '})()',
context: function(context) {
return {relative: context.file.relative.replace(/\.js$/, '')};
return {relative: context.file.relative.replace(/\.js$/, '').replace(/\\/g, '/')};
}
});
}