Implementing a streaming setup with Usenet
This commit is contained in:
@@ -101,10 +101,10 @@ async function downloadAssets() {
|
||||
await downloadFile(download.url, download.path);
|
||||
}
|
||||
|
||||
console.log('\n✅ External assets downloaded successfully!');
|
||||
console.log('\nExternal assets downloaded successfully!');
|
||||
|
||||
} catch (error) {
|
||||
console.error('💥 Error downloading assets:', error);
|
||||
console.error('Error downloading assets:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,8 +105,8 @@ async function minifyAllJS() {
|
||||
|
||||
if (processedFiles > 0) {
|
||||
const totalReduction = ((totalOriginal - totalMinified) / totalOriginal * 100).toFixed(1);
|
||||
console.log(`\n✅ Successfully minified ${processedFiles}/${jsFiles.length} JavaScript file(s)`);
|
||||
console.log(`📊 Total: ${(totalOriginal/1024).toFixed(1)}KB → ${(totalMinified/1024).toFixed(1)}KB (${totalReduction}% reduction)`);
|
||||
console.log(`\nSuccessfully minified ${processedFiles}/${jsFiles.length} JavaScript file(s)`);
|
||||
console.log(`Total: ${(totalOriginal/1024).toFixed(1)}KB → ${(totalMinified/1024).toFixed(1)}KB (${totalReduction}% reduction)`);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user