![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gulp-md5-includes
Advanced tools
Adds Soft MD5 suffix to files which included in a main HTML
file
this forces the browser to re-fetch new files that are already cached
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<link href="assets/style.css" rel="stylesheet"/>
</head>
<body>
<h1>Hello World</h1>
<script src="assets/scripts.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<link href="assets/style.css?eb6d8713c185988b8d6e1dfdf412a6bf" rel="stylesheet"/>
</head>
<body>
<h1>Hello World</h1>
<script src="assets/scripts.js?3131354f5733fc16f92093dfd42f78c8"></script>
</body>
</html>
First, install gulp-md5-includes
as a development dependency:
npm install --save-dev gulp-md5-includes
Then, add it to your gulpfile.js
:
var gulp = require('gulp');
var md5Includes = require('gulp-md5-includes');
gulp.task('md5', function () {
gulp.src("./index.tpl.html")
.pipe(md5Includes(['assets/style.css', 'assets/scripts.js'], 'index.html'))
.pipe(gulp.dest("./dist"));
});
var gulp = require('gulp');
var md5Includes = require('gulp-md5-includes');
gulp.task('md5-advanced', function () {
gulp.src("./index.tpl.html")
.pipe(md5Includes([
{
path: 'assets/style.css',
pattern: 'advanced/configuration/path/style.css'
},
{
path: 'assets/scripts.js',
pattern: 'advanced/configuration/path/scripts.js'
}],
'index-advanced.html'))
.pipe(gulp.dest("./dist"));
});
md5Includes(includes,newName)
includes
Type:
Array
Default: nullThe included files you wish to hash in your
HTML
file can bestring
orobject
newName
Type:
String
Default: nullOptional: html new name
FAQs
Hashing resource files like a boss
The npm package gulp-md5-includes receives a total of 4 weekly downloads. As such, gulp-md5-includes popularity was classified as not popular.
We found that gulp-md5-includes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.