performance-budget-plugin
Version:
Performance budget plugin for Webpack
70 lines (67 loc) • 1.31 kB
JavaScript
const validOptions = [
'requests',
'gzipRequests',
'postRequests',
'httpsRequests',
'notFound',
'timeToFirstByte',
'timeToLastByte',
'bodySize',
'contentLength',
'httpTrafficCompleted',
'ajaxRequests',
'htmlCount',
'htmlSize',
'cssCount',
'cssSize',
'jsCount',
'jsSize',
'jsonCount',
'jsonSize',
'imageCount',
'imageSize',
'webfontCount',
'webfontSize',
'videoCount',
'videoSize',
'base64Count',
'base64Size',
'cacheHits',
'cacheMisses',
'cachePasses',
'domains',
'domInteractive',
'domContentLoaded',
'domComplete',
'maxRequestsPerDomain',
'medianRequestsPerDomain',
'cookiesSent',
'cookiesRecv',
'domainsWithCookies',
'documentCookiesLength',
'documentCookiesCount',
'assetsNotGzipped',
'assetsWithQueryString',
'assetsWithCookies',
'smallImages',
'smallCssFiles',
'smallJsFiles',
'multipleRequests',
'smallestResponse',
'biggestResponse',
'fastestResponse',
'slowestResponse',
'smallestLatency',
'biggestLatency',
'medianResponse',
'medianLatency',
'requestsToFirstPaint',
'domainsToFirstPaint',
'requestsToDomContentLoaded',
'domainsToDomContentLoaded',
'requestsToDomComplete',
'domainsToDomComplete',
'metricsSummary',
'numberOfRebuilds'
];
module.exports = validOptions;