live-dev-server
Advanced tools
Comparing version 0.11.3 to 0.11.4
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -0,0 +0,0 @@ const path = require('path') |
@@ -104,4 +104,5 @@ const http = require('http') | ||
INJECT_SCRIPT_CODE, | ||
customInjectCode | ||
customInjectCode, | ||
) | ||
next() | ||
return | ||
@@ -108,0 +109,0 @@ } |
@@ -0,0 +0,0 @@ const colors = { |
@@ -0,0 +0,0 @@ const httpProxy = require('http-proxy') |
@@ -67,3 +67,3 @@ const path = require('path') | ||
injectCode, | ||
customInjectCode | ||
customInjectCode, | ||
) { | ||
@@ -84,3 +84,5 @@ let injectCodeResult = injectCode | ||
filePath = path.resolve(root, filePath) | ||
console.log(filePath) | ||
if (!fs.existsSync(filePath)) { | ||
return | ||
} | ||
let htmlFile = fs.readFileSync(filePath) | ||
@@ -87,0 +89,0 @@ res.write(htmlFile + injectCodeResult) |
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"name": "live-dev-server", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "develop env, watch files change", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,0 +0,0 @@ # live-dev-server |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15596
388