gatsby-plugin-perf-budgets
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -89,3 +89,6 @@ const fs = require(`fs-extra`); | ||
state.staticQueryComponents.forEach(sqc => { | ||
staticQueries[sqc.hash] = path.relative(publicDir, sqc.componentPath); | ||
staticQueries[sqc.hash] = path.relative( | ||
state.program.directory, | ||
sqc.componentPath | ||
); | ||
}); | ||
@@ -113,2 +116,4 @@ | ||
item.label = `Static Query result (from "${sqc}")`; | ||
item.type = `static-data`; | ||
item.fetch = `/` + path.relative(`./public`, item.path); | ||
} | ||
@@ -152,7 +157,9 @@ }) | ||
statSize: 5000, | ||
label: path.relative(publicDir, pageDataStatsPath), | ||
label: `Page-data`, | ||
path: path.relative(state.program.directory, pageDataStatsPath), | ||
fetch: `/` + path.relative(publicDir, pageDataStatsPath), | ||
isAsset: true, | ||
groups: [], | ||
componentChunkName, | ||
path: pagePath, | ||
// path: pagePath, | ||
type: `page-data` | ||
@@ -171,6 +178,8 @@ }; | ||
statSize: 5000, | ||
label: path.relative(publicDir, appDataPath), | ||
label: `App-data`, | ||
path: path.relative(state.program.directory, appDataPath), | ||
fetch: `/` + path.relative(publicDir, appDataPath), | ||
isAsset: true, | ||
groups: [], | ||
path: path.relative(publicDir, appDataPath), | ||
// path: path.relative(publicDir, appDataPath), | ||
type: `app-data` | ||
@@ -177,0 +186,0 @@ }; |
{ | ||
"name": "gatsby-plugin-perf-budgets", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
1351603
3590
3