![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.
@deskeen/web-builder-add-hash-filename
Advanced tools
This module allows the @deskeen/web-builder to add the file hash to the file names.
npm install @deskeen/web-builder
npm install @deskeen/web-builder-add-hash-filename
Add the module to the list of modules:
const builder = require('@deskeen/web-builder')
await builder.build({
source: [
// List of files or directories that include inlineSVG tags
// {{inlineJSON:file.json}}
],
modules: [
[
'@deskeen/web-builder-add-hash-filename',
{
// Starting points
// Can be a function or a list of files
entries: file => file.endsWith('.html'),
assets: [
// List of directories that include the files
// noted in the addHash tags
],
}
]
]
})
Let's consider the following files:
/www/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="{{addHash:style.css}}" rel="stylesheet" type="text/css">
<title>Pink is the new Black</title>
</head>
<body>
<!-- My cool page -->
</body>
</html>
/www/css/style.css
body {
background-color: pink;
}
Build the project by running:
await builder.build({
source: ['/www'],
modules: [
[
'@deskeen/web-builder-add-hash-filename',
{
entries: file => file.endsWith('.html'),
assets: ['/www/css'],
}
]
]
})
Two things happen:
<link href="style.cb163438387622e1354d9613a8f44dfa.css"
style.cb163438387622e1354d9613a8f44dfa.css
You can reach me at {my_firstname}@{my_name}.fr
MIT Licence - Copyright (c) Morgan Schmiedt
v0.1.0 - 2020-09-04
FAQs
Web Builder Module - Add Hash to Filename
The npm package @deskeen/web-builder-add-hash-filename receives a total of 2 weekly downloads. As such, @deskeen/web-builder-add-hash-filename popularity was classified as not popular.
We found that @deskeen/web-builder-add-hash-filename 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.