• Stars
    star
    129
  • Rank 279,262 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Parcel image minification plugin

Build Status

parcel-plugin-imagemin

A parcel plugin for image minification

Affected image formats

Currently supported extensions are .jpg, .jpeg, .png, .gif, .svg

Installation

yarn add parcel-plugin-imagemin -D

or

npm install parcel-plugin-imagemin -D

Usage

Image minification is only done on production builds so parcel build ..., this to improve rebuild speeds in dev mode (the imagemin data is cached so it should be pretty quick in prod as well)

Configuration

Configuration file used by this plugin is imagemin.config.js

module.exports = {
  "gifsicle": { "optimizationLevel": 2, "interlaced": false, "colors": 10 },
  "mozjpeg": { "progressive": true, "quality": 10 },
  "pngquant": { "quality": [0.25, 0.5] },
  "svgo": {
    "plugins": [
      { "removeViewBox": false },
      { "cleanupIDs": true },
    ]
  },
  "webp": { "quality": 10 }
}

See imagemin's API for further information: https://github.com/imagemin

License

MIT License

More Repositories

1

parcel-plugin-svelte

A parcel plugin that enables svelte support
JavaScript
231
star
2

blazingly-ssr

A blazing fast server side rendering & project optimiser cli tool using Parcel (POC/Experiment)
JavaScript
41
star
3

stylish-components

A component styling library with minimalism and performance in mind
JavaScript
18
star
4

tiny-benchy

TypeScript
15
star
5

vscode-pigments

Preview colors used inside the editor instantly
TypeScript
15
star
6

Angular-Parcel-Boilerplate

Parcel template for using Angular.io
JavaScript
15
star
7

fswatcher-child

An error prone wrapper over chokidars fswatcher for better performance and stability
JavaScript
7
star
8

triage-bot

Automatically labels issues according to globs
TypeScript
4
star
9

sourcemap-visualiser

A user friendly sourcemap visualiser built for Parcel
TypeScript
4
star
10

swc-wasm

JavaScript
3
star
11

simple-react-form-validator

A lightweight helper component for managing form validation
JavaScript
2
star
12

Loner-pong

Simple 3D javascript experiment (Pong)
JavaScript
1
star
13

parcel-plugin-web-ui

CSS
1
star
14

jsontotypescript

a json to typescript class (template) convertor
JavaScript
1
star
15

bluereceipt-challenge

TypeScript
1
star
16

Maltrail

A highly customisable intrusion detection system, with various built in lists(trails) for known attacks and attackers
Python
1
star
17

import-grapher

Generates a dependency tree based on a js entrypoint
JavaScript
1
star
18

graphql-docs

An on the fly documentation generation web-app for GraphQL API's
TypeScript
1
star
19

productivity-tracker

Small project to track hours spent on one of your hobbies/ambitions/goals/...
HTML
1
star