If you want to package and compress these files, you can use the plugin hexo-all-minifier (opens in a new tab) to solve this issue, which can effectively reduce the website's loading time.
hexo-all-minifier (opens in a new tab) integrates
imagemin, and it is easy to configure.
In the root directory of your Hexo project, install hexo-all-minifier by executing the following command:
npm install hexo-all-minifier
In the Hexo site configuration file
_config.yml, add the following configuration item:
If you encounter any issues or want to perform more detailed settings when using the plugin, please refer to the plugin's documentation (opens in a new tab).