live-dev-server
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -264,5 +264,5 @@ const http = require('http') | ||
console.log(projectRoot, filePath) | ||
let pathname = filePath.replace(projectRoot, '') | ||
let fileExt = pathname.split('.')[1] || 'unknown' | ||
return generateMessage(origin, { url: path.join(openURL, pathname), host: openURL, pathname, ext: fileExt }) | ||
let tmpPath = filePath.replace(projectRoot, '') | ||
let fileExt = tmpPath.split('.')[1] || 'unknown' | ||
return generateMessage(origin, { url: openURL + tmpPath, host: openURL, path: tmpPath, ext: fileExt }) | ||
} | ||
@@ -269,0 +269,0 @@ |
{ | ||
"name": "live-dev-server", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "develop env, watch files change, mock data", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
8748
4