We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f78452 commit c1f4d59Copy full SHA for c1f4d59
angular-http-server.js
@@ -81,15 +81,15 @@ function start() {
81
}
82
83
function returnDistFile() {
84
- var path = "index.html";
+ var distPath = "index.html";
85
var argvPath = argv.path;
86
if (argvPath && fs.existsSync(argvPath)) {
87
- path = path.join(argvPath, 'index.html');
+ distPath = path.join(argvPath, 'index.html');
88
} else if (argvPath && !fs.existsSync(argvPath)) {
89
console.log("Can't find %s, using current dir instead", argvPath);
90
91
92
- return fs.readFileSync(path);
+ return fs.readFileSync(distPath);
93
94
95
function resolveUrl(filename) {
0 commit comments