@11ty/eleventy-dev-server
Advanced tools
Comparing version 1.0.0-canary.5 to 1.0.0-canary.6
{ | ||
"name": "@11ty/eleventy-dev-server", | ||
"version": "1.0.0-canary.5", | ||
"version": "1.0.0-canary.6", | ||
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -268,7 +268,11 @@ const pkg = require("./package.json"); | ||
if(req.url === `/${this.options.folder}/reload-client.js`) { | ||
res.setHeader("Content-Type", mime.getType("js")); | ||
return res.end(this._getFileContents("./client/reload-client.js")); | ||
if(this.options.enabled) { | ||
res.setHeader("Content-Type", mime.getType("js")); | ||
return res.end(this._getFileContents("./client/reload-client.js")); | ||
} | ||
} else if(req.url === `/${this.options.folder}/morphdom.js`) { | ||
res.setHeader("Content-Type", mime.getType("js")); | ||
return res.end(this._getFileContents("./node_modules/morphdom/dist/morphdom-esm.js", path.resolve("."))); | ||
if(this.options.domdiff) { | ||
res.setHeader("Content-Type", mime.getType("js")); | ||
return res.end(this._getFileContents("./node_modules/morphdom/dist/morphdom-esm.js", path.resolve("."))); | ||
} | ||
} | ||
@@ -275,0 +279,0 @@ |
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
26318
674