0.1.11 • Published 4 years ago

gatsby-performance-budget v0.1.11

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

This is a gatsby plugin to check performance budget against all pages after build.

Install

npm install gatsby-performance-budget

Configuration

create budget.js file at the root of your gatsby project and export the budget configuration as a module from it.

Example:

// budget.js

const budget = [
  {
    "resourceSizes": [
      {
        "resourceType": "script",
        "budget": 300
      },
      {
        "resourceType": "image",
        "budget": 100
      },
      {
        "resourceType": "third-party",
        "budget": 200
      },
      {
        "resourceType": "total",
        "budget": 1000
      }
    ]
  }
]

module.exports = budget

Run

check-perf

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago