You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the plugin adds the .gz extension to compressed files by default. However, it would be useful to have the ability to completely override the output file extension to suit specific project requirements.
For example, it would be great to have the option to replace the default .js.gz extension with just .js This would allow for greater flexibility in configuring the plugin and output file naming conventions.
In case of configuring your vite config file to this:
output: {entryFileNames: '[name].js',},
and then your vite compress plugin config to this:
Ability to Override Output File Extension
Currently, the plugin adds the
.gz
extension to compressed files by default. However, it would be useful to have the ability to completely override the output file extension to suit specific project requirements.For example, it would be great to have the option to replace the default
.js.gz
extension with just.js
This would allow for greater flexibility in configuring the plugin and output file naming conventions.In case of configuring your vite config file to this:
and then your vite compress plugin config to this:
the resulting files will have
.js.js
extension. Leavingext
to just an empty string ("") defaults the config to set.gz
as the final file extension.The text was updated successfully, but these errors were encountered: