@11ty/eleventy-dev-server
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -58,3 +58,3 @@ const chokidar = require("chokidar"); | ||
input: ".", | ||
domdiff: true, | ||
domDiff: true, | ||
} | ||
@@ -70,3 +70,3 @@ } | ||
logger: Logger, | ||
domdiff: this.options.domdiff, | ||
domDiff: this.options.domDiff, | ||
@@ -73,0 +73,0 @@ // CLI watches all files in the folder by default |
@@ -59,3 +59,3 @@ #!/usr/bin/env node | ||
port: argv.port, | ||
domdiff: argv.domdiff, | ||
domDiff: argv.domdiff, | ||
}); | ||
@@ -62,0 +62,0 @@ |
{ | ||
"name": "@11ty/eleventy-dev-server", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -24,3 +24,3 @@ const pkg = require("./package.json"); | ||
https: {}, // `key` and `cert`, required for http/2 and https | ||
domdiff: true, // Use morphdom to apply DOM diffing delta updates to HTML | ||
domDiff: true, // Use morphdom to apply DOM diffing delta updates to HTML | ||
showVersion: false, // Whether or not to show the server version on the command line. | ||
@@ -66,11 +66,11 @@ encoding: "utf-8", // Default file encoding | ||
// better names for options https://github.com/11ty/eleventy-dev-server/issues/41 | ||
if(options.folder) { | ||
if(options.folder !== undefined) { | ||
this.options.injectedScriptsFolder = options.folder; | ||
delete this.options.folder; | ||
} | ||
if(options.domdiff) { | ||
if(options.domdiff !== undefined) { | ||
this.options.domDiff = options.domdiff; | ||
delete this.options.domdiff; | ||
} | ||
if(options.enabled) { | ||
if(options.enabled !== undefined) { | ||
this.options.liveReload = options.enabled; | ||
@@ -526,2 +526,4 @@ delete this.options.enabled; | ||
this.start = Date.now(); | ||
// Check for secure server requirements, otherwise use HTTP | ||
@@ -583,3 +585,4 @@ let { key, cert } = this.options.https; | ||
this.logger.info(`Server at ${hostsStr}${this._serverProtocol}//localhost:${port}${this.options.pathPrefix}${this.options.showVersion ? ` (v${pkg.version})` : ""}`); | ||
let startBenchmark = ""; // this.start ? ` ready in ${Date.now() - this.start}ms` : ""; | ||
this.logger.info(`Server at ${hostsStr}${this._serverProtocol}//localhost:${port}${this.options.pathPrefix}${this.options.showVersion ? ` (v${pkg.version})` : ""}${startBenchmark}`); | ||
}); | ||
@@ -765,2 +768,3 @@ | ||
}); | ||
console.log( build.templates ); | ||
} | ||
@@ -767,0 +771,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
41102
1104