
// import { existsSync } from 'fs';

/** Returns `true` when the Needle project is configured to serve gzip-compressed assets.
 * Reads the `gzip` field from the config object.
 * @param {import('../types/needleConfig').needleConfig | undefined} config
 * @returns {boolean}
 */
export function useGzip(config) {
    return config?.gzip ? true : false;
}