Generate .gz
gzipped versions of files recursively for every file in a folder.
A single function that takes two arguments: a glob string, and an optional object to pass in as options to glob.
Returns a promise that resolves to an array of all .gz
files created.
const gzipAll = require('gzip-all')
gzipAll('**/content/*.md').then(newFiles => {
console.log('yay, created', newFiles.length, 'compressed files!')
})
gzip-all "**/content/*.md"