Grunt Contrib Compress

screenshot of Grunt Contrib Compress

Compress files and folders.

Overview:

grunt-contrib-compress is a plugin that allows users to compress files and folders using Grunt. This plugin is designed to work with Grunt version 0.4.x or higher, and it provides various options for compression settings such as archive type, compression mode, compression level, and brotli compression configurations.

Features:

  • Compress task: Run the compression task using grunt compress command.
  • Node Libraries Used: Utilizes archiver for zip/tar and zlib for gzip.
  • Options: Configure archive type, compression mode, compression level, and brotli compression settings.
  • File Data: Additional keys can be passed for setting file date, permissions, compression type, comment, group, and user.

Summary:

grunt-contrib-compress is a useful plugin for compressing files and folders in a Grunt project. It provides easy configuration options for setting compression settings such as archive type, compression mode, and level. By following the installation guide and utilizing the features of this plugin, users can efficiently manage file compression tasks within their projects.

grunt
Grunt

Grunt is a popular JavaScript task runner that automates repetitive tasks like minification, compilation, and testing, allowing developers to focus on writing code.