open-index/open-npm huggingface dataset:
npm package: @national-digital/gridsome-plugin-keep-processed-images
Description: Gridsome plugin for keeping processed images between builds
Author: Dominique Dutra
Latest version: 1.0.3

# Gridsome Plugin: Keep Processed Images

Gridsome plugin that speeds up build time on projects involving images by preventing that images get processed (resized, cropped etc) over and over again.

It does so by keeping a fresh copy of processed images on the `.cache` directory and moving the images back to `dist` diretory before the new build is executed. The image-processor worker will not process images that already exist on `dist`.

## Install

```bash
yarn add @national-digital/gridsome-plugin-keep-processed-images
npm install @national-digital/gridsome-plugin-keep-processed-images
```

## Usage

```js
module.exports = {
  siteName: "Gridsome",
  plugins: [
    {
      use: "@national-digital/gridsome-plugin-keep-processed-images",
    },
  ],
};
```