@otterlord/astro-compress
Version:
🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more!
2 lines (1 loc) • 444 B
JavaScript
import{readFile as t}from"fs/promises";var i={path:"./dist",logger:2,pipe:{wrote:async e=>e.buffer,read:async e=>await t(e.inputPath,"utf-8"),passed:async()=>!0,failed:async e=>`Error: Cannot process file ${e.inputPath}!`,accomplished:async e=>`Processed ${e.inputPath} in ${e.outputPath}.`,fulfilled:async e=>e.files>0?`Successfully processed a total of ${e.files} ${e.files===1?"file":"files"}.`:!1,changed:async e=>e}};export{i as default};