Skip to content

Commit

Permalink
process.cwd() will return dirname of location.pathname, webpack#21
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Aug 23, 2012
1 parent 7a36c44 commit 95fca26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildin/__webpack_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ exports.nextTick = (function(func) {
};
}());
exports.cwd = function() {
return "/app";
var pathname = (window.location.pathname+"").split("/");
pathname.pop();
return pathname.join("/");
}
exports.exit = exports.kill =
exports.chdir =
Expand Down

0 comments on commit 95fca26

Please sign in to comment.