1.0.3 • Published 4 years ago
@national-digital/gridsome-plugin-keep-processed-images v1.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
yarn add @national-digital/gridsome-plugin-keep-processed-images
npm install @national-digital/gridsome-plugin-keep-processed-images
Usage
module.exports = {
siteName: "Gridsome",
plugins: [
{
use: "@national-digital/gridsome-plugin-keep-processed-images",
},
],
};