Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file-loader 5 => 6 (including md5 => md4) #299

Merged
merged 2 commits into from Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 33 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -40,14 +40,15 @@
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.1",
"express": "^4.17.1",
"file-loader": "^5.1.0",
"file-loader": "^6.0.0",
"filesize": "^6.1.0",
"fs-extra": "^9.0.0",
"fuse.js": "^3.6.1",
"generator-scrivito": "file:generator-scrivito",
"html-webpack-plugin": "^3.2.0",
"is-empty": "^1.2.0",
"jquery": "^3.4.1",
"js-md4": "^0.3.2",
"jsontoxml": "^1.0.1",
"lodash": "^4.17.15",
"lodash-es": "^4.17.15",
Expand All @@ -71,7 +72,6 @@
"sass-loader": "^8.0.2",
"scrivito": "^1.11.0",
"slick-carousel": "^1.6.0",
"spark-md5": "^3.0.1",
"terser-webpack-plugin": "^2.3.5",
"typescript": "^3.8.3",
"webpack": "^4.42.1",
Expand Down
6 changes: 3 additions & 3 deletions src/prerenderContent/contentHash.js
@@ -1,6 +1,6 @@
import { hash as md5 } from "spark-md5";
import md4 from "js-md4";

/** Generates a 20 long hex value, based the md5 of the given string */
/** Generates a 20 long hex value, based the md4 of the given string */
export default async function contentHash(input) {
return md5(input).substr(0, 20);
return md4(input).substr(0, 20);
}