From 1af8fbd643f04b26cbfea3cca6abb46ad6c83100 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 25 Aug 2021 12:03:09 -0400 Subject: [PATCH] fix percy snapshots --- .percy.yml | 5 +++-- package.json | 2 +- webpack.config.js | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.percy.yml b/.percy.yml index d462f436..d82a09f0 100644 --- a/.percy.yml +++ b/.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 diff --git a/package.json b/package.json index cc4befd6..9bd47eb7 100644 --- a/package.json +++ b/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", diff --git a/webpack.config.js b/webpack.config.js index a9650481..31168483 100644 --- a/webpack.config.js +++ b/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: {