Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-compress
Advanced tools
Readme
Install library into your project (with npm or yarn)
, how dev
:
npm i react-compress --save-dev
---
yarn add react-compress -D
And then just add react compress in your package.json
build script like below:
- "build": "react-scripts build",
+ "build": "react-scripts build && react-compress",
And then just run script build
like you always do:
npm run build
---
yarn run build
Before react-compress:
Build script with this library:
After react-compress:
You can made your build folder 30% smaller
and optimized than it was without this library. How you can see in Example pictures our JS bundle who loaded 0.39s without this library now loaded in 0.2s, it's almost 50%!
.
And of course when your project larger this library will give you more profit
If you have some problems, write me, or use issues in this repository
Good luck!
FAQs
Easy way to compress your JS bundle when you compile build folder
The npm package react-compress receives a total of 222 weekly downloads. As such, react-compress popularity was classified as not popular.
We found that react-compress 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.