File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments