-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
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
Using Compression plugin alongside 'html-webpack-plugin' #57
Comments
Apparently this is a duplicate of #45 |
No update even after a month? |
Hi guys, I've just wrote a simple plugin to connect both plugins. You can download with |
@lucasvinals Awesome I will check it out! |
I ran into this same problem today and pulled together a simple plugin based on the brotli-webpack-plugin that supports both brotli and gzip compression. |
@d3viant0ne Now that the PR is merged and published, can you show how to use this plugin with html-webpack-plugin? Thank you |
Hi, I also can't find any documentation on how to make this work with html-webpack-plugin (i.e. have html-webpack-plugin write the path with the correct file extension). Can anyone here point me in the right direction? I'd be happy to document it. |
Just in case some one else find this issue later. If you are using You can try this plugin: html-webpack-change-assets-extension-plugin. Eg: plugins: [
new HtmlWebpackPlugin({
jsExtension: ".gz"
}),
new CompressionPlugin(), // compression plugin will generate the xxx.js.gz file
new HtmlWebpackChangeAssetsExtensionPlugin()
]; |
Is it possible to make the Html Webpack plugin insert a link to the .gz build file instead of the normal .js build file?
Is this even the right place to ask this question??
Thanks for your help, and thanks for your work on a great plugin!
The text was updated successfully, but these errors were encountered: