Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 17, 2024
1 parent c585895 commit 9bf30e3
Show file tree
Hide file tree
Showing 3 changed files with 6,455 additions and 3,345 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class HtmlWebpackPlugin {
typeof userOptionFilename === "function"
? userOptionFilename
: // Replace '[name]' with entry name
(entryName) => userOptionFilename.replace(/\[name\]/g, entryName);
(entryName) => userOptionFilename.replace(/\[name\]/g, entryName);

/** output filenames for the given entry names */
const entryNames = Object.keys(compiler.options.entry);
Expand Down Expand Up @@ -265,8 +265,8 @@ class HtmlWebpackPlugin {
if (path.resolve(filename) === path.normalize(filename)) {
const outputPath =
/** @type {string} - Once initialized the path is always a string */ (
compiler.options.output.path
);
compiler.options.output.path
);

filename = path.relative(outputPath, filename);
}
Expand All @@ -282,11 +282,11 @@ class HtmlWebpackPlugin {
{
name: "HtmlWebpackPlugin",
stage:
/**
* Generate the html after minification and dev tooling is done
*/
compiler.webpack.Compilation
.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE,
/**
* Generate the html after minification and dev tooling is done
*/
compiler.webpack.Compilation
.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE,
},
/**
* Hook into the process assets hook
Expand Down
2 changes: 1 addition & 1 deletion lib/cached-child-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class PersistentChildCompilerSingletonPlugin {
childCompilationResult.dependencies,
);
});
// @ts-ignore
handleCompilationDonePromise.then(
// @ts-ignore
() => callback(null, chunks, modules),
callback,
);
Expand Down
Loading

0 comments on commit 9bf30e3

Please sign in to comment.