bundlesize
Advanced tools
Comparing version 0.5.8 to 0.5.9
{ | ||
"name": "bundlesize", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "Keep your library size in check", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -83,2 +83,3 @@ <p align="center"> | ||
- [css-constructor](https://github.com/siddharthkp/css-constructor) | ||
- [Popper.js](https://github.com/FezVrasta/popper.js) | ||
@@ -85,0 +86,0 @@ |
@@ -48,13 +48,13 @@ const bytes = require('bytes') | ||
} | ||
}) | ||
if (fail) build.fail(globalMessage || 'bundle size > threshold') | ||
else { | ||
if (event_type === 'push' && branch === 'master') { | ||
const values = [] | ||
files.map(file => values.push({ path: file.path, size: file.size })) | ||
api.set(values) | ||
} | ||
build.pass(globalMessage || 'Good job! bundle size < threshold') | ||
if (fail) build.fail(globalMessage || 'bundle size > threshold') | ||
else { | ||
if (event_type === 'push' && branch === 'master') { | ||
const values = [] | ||
files.map(file => values.push({ path: file.path, size: file.size })) | ||
api.set(values) | ||
} | ||
}) | ||
build.pass(globalMessage || 'Good job! bundle size < threshold') | ||
} | ||
} | ||
@@ -61,0 +61,0 @@ |
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
8091
97