Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Update JSDoc
  • Loading branch information
habina authored and jantimon committed Oct 3, 2018
1 parent dbbdd81 commit 8e14a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8e14a0b

Please sign in to comment.