1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 09:58:28 -04:00

fix percy snapshots

This commit is contained in:
Jake Jarvis 2021-08-25 12:03:09 -04:00
parent 36c9a6b2d1
commit 1af8fbd643
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 7 additions and 5 deletions

View File

@ -21,10 +21,11 @@ snapshot:
transition-delay: 0s !important; transition-delay: 0s !important;
} }
static: static:
files: include:
- "index.html" - "index.html"
- "uses/index.html" - "uses/index.html"
- "notes/{how-to-pull-request-fork-github,shodan-search-queries}/index.html" - "notes/how-to-pull-request-fork-github/index.html"
- "notes/shodan-search-queries/index.html"
discovery: discovery:
network-idle-timeout: 750 network-idle-timeout: 750
disable-cache: true disable-cache: true

View File

@ -26,7 +26,7 @@
"lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss", "lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss",
"lint:md": "markdownlint 'content/**/*.md'", "lint:md": "markdownlint 'content/**/*.md'",
"lint:prettier": "prettier --check .", "lint:prettier": "prettier --check .",
"percy": "npx percy snapshot ./public --files 'index.html,uses/index.html,notes/{how-to-pull-request-fork-github,shodan-search-queries}/index.html'" "percy": "npx percy snapshot ./public"
}, },
"dependencies": { "dependencies": {
"@fontsource/comic-neue": "4.5.0", "@fontsource/comic-neue": "4.5.0",

View File

@ -61,14 +61,15 @@ export default {
], ],
}), }),
new SubresourceIntegrityPlugin({ new SubresourceIntegrityPlugin({
hashFuncNames: ["sha512"],
enabled: true, enabled: true,
hashFuncNames: ["sha384"],
}), }),
new WebpackAssetsManifest({ new WebpackAssetsManifest({
writeToDisk: true, writeToDisk: true, // allow Hugo to access file in dev mode
output: path.resolve(__dirname, "data/manifest.json"), output: path.resolve(__dirname, "data/manifest.json"),
publicPath: true, publicPath: true,
integrity: true, integrity: true,
integrityHashes: ["sha384"],
}), }),
], ],
module: { module: {