From 8e14a0bf373b6a61dac9a93c11e71c3c7f2e9a5f Mon Sep 17 00:00:00 2001 From: Dasheng Chen Date: Tue, 2 Oct 2018 22:59:17 -0700 Subject: [PATCH] Update index.js Update JSDoc --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3bbdfdf1..3ce94cb5 100644 --- a/index.js +++ b/index.js @@ -518,7 +518,7 @@ class HtmlWebpackPlugin { } /** - * Check the path is a absolute url path + * Return true if PATH is an absolute url path, otherwise false * * @param {string | undefined} path */ @@ -554,7 +554,7 @@ class HtmlWebpackPlugin { * fallback to a realtive path */ let publicPath = this.isAbsolutePath(compilation.options.output.publicPath) - // If a absolute path is set in the publicPath use it + // If the absolute path is set in the publicPath use it ? compilation.mainTemplate.getPublicPath({hash: compilationHash}) // If publicPath was a relative path get the realtive path : path.relative(path.resolve(compilation.options.output.path, path.dirname(childCompilationOutputName)), compilation.options.output.path)