rollup-plugin-filesize
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -15,3 +15,3 @@ 'use strict'; | ||
return boxen(colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1), { padding: 1 }); | ||
return boxen((bundle.dest ? colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' : '') + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1), { padding: 1 }); | ||
} | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "rollup-plugin-filesize", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A rollup plugin to show filesize in the cli", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,3 +12,3 @@ import fileSize from 'filesize'; | ||
return boxen( | ||
colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' + | ||
(bundle.dest ? (colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n') : '') + | ||
colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + | ||
@@ -15,0 +15,0 @@ colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip), { padding: 1 } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4715
72