Browse Source

fix percy snapshots

pull/523/head
Jake Jarvis 2 months ago
parent
commit
1af8fbd643
Signed by: jake GPG Key ID: 2B0C9CF251E69A39
  1. 5
      .percy.yml
  2. 2
      package.json
  3. 5
      webpack.config.js

5
.percy.yml

@ -21,10 +21,11 @@ snapshot:
transition-delay: 0s !important;
}
static:
files:
include:
- "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:
network-idle-timeout: 750
disable-cache: true

2
package.json

@ -26,7 +26,7 @@
"lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss",
"lint:md": "markdownlint 'content/**/*.md'",
"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": {
"@fontsource/comic-neue": "4.5.0",

5
webpack.config.js

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

Loading…
Cancel
Save