New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

image-optimizer-webpack-loader

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

image-optimizer-webpack-loader

Optimizes JPEG's within your Webpack project

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Image Optimizer Webpack loader

This Webpackloader is for my image-optimizer-core package. It reduces your JPEG's to a minimum (to even 80%-90% savings)

Install

please have a look at the instruction of node-opencv to install opencv on your machine.

# if you havent then please install
$ yarn add --dev file-loader

$ yarn add --dev image-optimizer-webpack-loader

Usage

// webpack.config.js
const path = require('path')

const config = {
  entry: path.resolve(__dirname, 'app.js'),
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'bundle.js',
  },
  module: {
    rules: [{
      test: /\.jpe?g$/i,
      use: [
        'file-loader',
        'image-optimizer-webpack-loader',
      ],
    }],
  },
}

module.exports = config

Keywords

image

FAQs

Package last updated on 30 May 2018

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