Skip to content

Commit

Permalink
Merge pull request #299 from Scrivito/file-loader_6
Browse files Browse the repository at this point in the history
file-loader 5 => 6
  • Loading branch information
dcsaszar committed Mar 27, 2020
2 parents 195053e + 4835030 commit 5eb969b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
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);
}

0 comments on commit 5eb969b

Please sign in to comment.