@djforth/ap_imagemin
Asset Pipeline plugin for imagemin
Last updated 3 years ago by djforth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @djforth/ap_imagemin 
SYNC missed versions from official npm registry.

Asset Pipeline - Imagemin

This is a wrapper for imagemin that will eventually become a plugin for a larger project to manage the whole build process.

It can be used however on it's own. To install run:

npm install @djforth/ap_imagemin -g

Now add the configuration details to your package.json like so (N.B. These are the defaults):

"assets": {
    "images": {
      "input": "app/assets_uncompiled/images",
      "output": "public/assets",
      "ext": [
        "*.png",
        "*.gif",
        "*.jpg",
        "*.jpeg",
        "*.svg"
      ],
      "plugins": [
        [
          "imagemin-gifsicle",
          {
            "interlaced": true
          }
        ],
        [
          "imagemin-jpegtran",
          {
            "progressive": true
          }
        ],
        [
          "imagemin-optipng",
          {
            "optimizationLevel": 3
          }
        ],
        "imagemin-svgo"
      ]
    }
  }

These options are:

  • input - where it will look for your images
  • output - where it will place your compressed images (should not be the same as input)
  • extensions - What file extensions you wish to process
  • plugins and optimisation options see https://www.npmjs.com/browse/keyword/imageminplugin for all available plugins

CLI

To run with defaults or config:

asset-pipeline-imagemin

Options are:

asset-pipeline-imagemin -h

  Usage: asset-pipeline-imagemin [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -e, --ext <list>       exts to process
    -i, --input <folder>   input folder
    -o, --output <folder>  output folder
    -w, --watch            Watch scripts

Current Tags

  • 3.0.0-pre.1                                ...           latest (3 years ago)

34 Versions

  • 3.0.0-pre.1                                ...           3 years ago
  • 3.0.0-pre                                ...           3 years ago
  • 2.3.7                                ...           4 years ago
  • 2.3.6                                ...           4 years ago
  • 2.3.5                                ...           4 years ago
  • 2.3.4                                ...           4 years ago
  • 2.3.3                                ...           4 years ago
  • 2.3.2                                ...           4 years ago
  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.7                                ...           4 years ago
  • 2.0.6                                ...           4 years ago
  • 2.0.5                                ...           4 years ago
  • 2.0.4                                ...           4 years ago
  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.2-0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.1-0                                ...           4 years ago
  • 2.0.0-0                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.9-0                                ...           4 years ago
  • 1.0.8-0                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 34
Dependencies (7)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |