Skip to content

Commit

Permalink
Convert Windows style paths to *nix style in build step
Browse files Browse the repository at this point in the history
As discussed in Urigo#169, we need to normalize paths across platforms
to be able to consistently refer to templates in apps.
  • Loading branch information
fredrikekelund committed Feb 3, 2015
1 parent 0734394 commit 443f17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Plugin.registerSourceHandler('tpl', {
var contents = compileStep.read().toString('utf8');

var results = 'angular.module(\'angular-meteor\').run([\'$templateCache\', function($templateCache) {' +
'$templateCache.put(\'' + compileStep.inputPath + '\', \'' +
'$templateCache.put(\'' + compileStep.inputPath.replace(/\\/g, "/") + '\', \'' +
minify(contents.replace(/'/g, "\\'"), {
collapseWhitespace : true,
removeComments : true,
Expand Down

0 comments on commit 443f17b

Please sign in to comment.