New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

responsive-loader-tinify-adapter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

responsive-loader-tinify-adapter

Tinify adapter for webpack responsive loader

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Responsive Loader Tinify Adapter

Using Tinify to compress/resize images for Responsive Loader webpack loader.

Code style

Install

npm install --save-dev responsive-loader-tinify-adapter

Usage

Tinify key

You will need an API key from Tinify

Responsive loader
// 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

Package last updated on 24 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc