
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
responsive-loader-tinify-adapter
Advanced tools
Using Tinify to compress/resize images for Responsive Loader webpack loader.
npm install --save-dev responsive-loader-tinify-adapter
You will need an API key from Tinify
// Webpack config
const {
responsiveLoaderTinifyAdapter
} = require('responsive-loader-tinify-adapter');
const config = {
...
module: {
rules: [
{
test: /\.(jpg)$/,
loader: 'responsive-loader',
options: {
name: '[name]-[width].[ext]',
adapter: responsiveLoaderTinifyAdapter({
tinifyKey: [YOUR_TINIFY_KEY]
}) // You can limit this adapter only to run in production mode if you want to
}
}
]
},
...
}
FAQs
Tinify adapter for webpack responsive loader
The npm package responsive-loader-tinify-adapter receives a total of 2 weekly downloads. As such, responsive-loader-tinify-adapter popularity was classified as not popular.
We found that responsive-loader-tinify-adapter 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.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.