Skip to content

Commit 320226c

Browse files
committed
style: modify some comments
1 parent 4d9e668 commit 320226c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class InlineSourceWebpackPlugin {
3131
if (compilation.fileDependencies.add) {
3232
compilation.fileDependencies.add(source.filepath);
3333
} else {
34-
// Before Webpack 4 - fileDepenencies was an array
34+
// Before Webpack 4
35+
// fileDepenencies was an array
3536
compilation.fileDependencies.push(source.filepath);
3637
}
3738
}
@@ -53,7 +54,7 @@ class InlineSourceWebpackPlugin {
5354

5455
apply(compiler) {
5556
if ('hooks' in compiler) {
56-
// We're in webpack 4+ or higher
57+
// webpack 4 or higher
5758
compiler.hooks.compilation.tap(this.constructor.name, compilation => {
5859
// if htmlWebpackPlugin is not exist, just do nothing
5960
if (compilation.hooks.htmlWebpackPluginAfterHtmlProcessing) {
@@ -66,7 +67,7 @@ class InlineSourceWebpackPlugin {
6667
}
6768
});
6869
} else {
69-
// We're in webpack 2 or 3.
70+
// webpack 2 or 3
7071
compiler.plugin('compilation', compilation => {
7172
compilation.plugin('html-webpack-plugin-after-html-processing', (data, cb) => {
7273
this._process(compilation, data, cb);

0 commit comments

Comments
 (0)