We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The plugin isn't working anymore with webpack 4. I created an fix, bud I cannot make an pull request.
fix for webpack 4 index.js.txt
apply(compiler) { var compilationPlugin = (compilation, doCallback) => { return compilation.plugin( 'html-webpack-plugin-before-html-processing', (htmlPluginData, callbackHTMLData) => { if(doCallback){ return callbackHTMLData(null, this.Change(htmlPluginData)); } else { return this.Change(htmlPluginData); } } ); }; if (compiler.hooks) { compiler.hooks.compilation.tap("ChangeExtensionPlugin", (compilation) => compilationPlugin(compilation, false)); } else { return compiler.plugin( 'compilation', (compilation) => compilationPlugin(compilation, true) ); } }
The text was updated successfully, but these errors were encountered:
This is brilliant. Its working after i added this snippet. Thanks a lot!
Sorry, something went wrong.
No branches or pull requests
The plugin isn't working anymore with webpack 4. I created an fix, bud I cannot make an pull request.
fix for webpack 4
index.js.txt
apply(compiler) { var compilationPlugin = (compilation, doCallback) => { return compilation.plugin( 'html-webpack-plugin-before-html-processing', (htmlPluginData, callbackHTMLData) => { if(doCallback){ return callbackHTMLData(null, this.Change(htmlPluginData)); } else { return this.Change(htmlPluginData); } } ); }; if (compiler.hooks) { compiler.hooks.compilation.tap("ChangeExtensionPlugin", (compilation) => compilationPlugin(compilation, false)); } else { return compiler.plugin( 'compilation', (compilation) => compilationPlugin(compilation, true) ); } }
The text was updated successfully, but these errors were encountered: